зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1035091 - Add a reftest to ensure @-moz-document works with user sheets. r=cam
MozReview-Commit-ID: DJWlDO0cODd --HG-- extra : rebase_source : cde8b48d7c1e62304f20a6fe282f76582684ae09 extra : source : c99f1f85f88cc980bd58a9f545e05af9ab6503b1
This commit is contained in:
Родитель
badd6bf1b0
Коммит
c83f9eecf9
|
@ -6,5 +6,7 @@
|
|||
<body>
|
||||
<p>This paragraph should have a green background.</p>
|
||||
<p>This paragraph should have a green background, too.</p>
|
||||
<p>@-moz-document rules should be applied.</p>
|
||||
<p>@-moz-document rules should not be applied.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<style>p { background-color: red; }</style>
|
||||
<style>
|
||||
p {
|
||||
background-color: red;
|
||||
}
|
||||
.reftest-xdomain {
|
||||
background: lime;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="reftest-usercss">This paragraph should have a green background.</p>
|
||||
<p class="reftest-userxbl">This paragraph should have a green background, too.</p>
|
||||
<p class="reftest-domain">@-moz-document rules should be applied.</p>
|
||||
<p class="reftest-xdomain">@-moz-document rules should not be applied.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,3 +4,14 @@
|
|||
.reftest-userxbl {
|
||||
-moz-binding: url("binding.xml#reftest-userxbl") !important;
|
||||
}
|
||||
/* file: URLs have an empty domain */
|
||||
@-moz-document domain() {
|
||||
.reftest-domain {
|
||||
background: lime !important;
|
||||
}
|
||||
}
|
||||
@-moz-document domain(example.invalid) {
|
||||
.reftest-xdomain {
|
||||
background: red !important;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче