Bug 1384020: Test. r=canaltinova
authorEmilio Cobos Álvarez <emilio@crisal.io>
Wed, 26 Jul 2017 00:11:16 +0200
changeset 419658 215c7f7ff02642dce345f19610f0188c789cac57
parent 419657 6a64e20610de04a40803749b446e48c2f39f79bd
child 419659 6af0ca47efabcc081abc4f0e19922e1dbe06d4ab
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscanaltinova
bugs1384020
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1384020: Test. r=canaltinova MozReview-Commit-ID: JsuNmfbHgFW
layout/style/test/test_hover_quirk.html
--- 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>