mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 1384020: Test. r=canaltinova
MozReview-Commit-ID: JsuNmfbHgFW --HG-- extra : rebase_source : c4a9cf2a34cb71dd6b9cfb12e2d604ba1752d9e0
This commit is contained in:
parent
917b2e56a1
commit
cd3f69980b
@ -17,10 +17,19 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=783213
|
||||
#content :hover::after {
|
||||
content: "any element";
|
||||
}
|
||||
|
||||
#content :hover:first-of-type .child::after {
|
||||
content: "any child";
|
||||
}
|
||||
|
||||
#content .parent .child::after {
|
||||
content: "wrong" !important;
|
||||
}
|
||||
|
||||
#content .parent:hover .child::after {
|
||||
content: "any child" !important;
|
||||
}
|
||||
|
||||
/* Should apply only to links: */
|
||||
#content :hover {
|
||||
color: rgb(0, 255, 0) !important;
|
||||
@ -65,6 +74,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=783213
|
||||
test(document.getElementById("span"), false);
|
||||
test(document.getElementById("label"), false);
|
||||
test(document.getElementById("link"), true);
|
||||
test(document.getElementById("div"), false);
|
||||
SimpleTest.finish();
|
||||
});
|
||||
</script>
|
||||
@ -75,7 +85,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=783213
|
||||
<div id="content">
|
||||
<span id="span">Span<span class="child"></span></span><br>
|
||||
<label id="label">Label<span class="child"></span></label><br>
|
||||
<a id="link" href="#">Link<span class="child"></span></a>
|
||||
<a id="link" href="#">Link<span class="child"></span></a><br>
|
||||
<div id="div" class="parent">Div <span><span class="child"></span></span></div><br>
|
||||
</div>
|
||||
<pre id="test"></pre>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user