Bug 1384020: Test. r?canaltinova
MozReview-Commit-ID: JsuNmfbHgFW
--- a/layout/style/test/test_hover_quirk.html
+++ b/layout/style/test/test_hover_quirk.html
@@ -12,20 +12,29 @@ https://bugzilla.mozilla.org/show_bug.cg
color: rgb(255, 0, 0);
}
#content :-moz-any(:hover) {
text-transform: lowercase;
}
#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;
text-transform: uppercase !important;
}
#content :hover .child::after {
content: "link child" !important;
}
@@ -60,23 +69,25 @@ https://bugzilla.mozilla.org/show_bug.cg
"Unexpected pseudo-element content for child");
}
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(function() {
test(document.getElementById("span"), false);
test(document.getElementById("label"), false);
test(document.getElementById("link"), true);
+ test(document.getElementById("div"), false);
SimpleTest.finish();
});
</script>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=783213">Mozilla Bug 783213</a>
<p id="display"></p>
<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>
</html>