Bug 1384020: Test. r?canaltinova draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Wed, 26 Jul 2017 00:11:16 +0200
changeset 615397 5120fc8ff24ba7a14d709f52ced52b45f9db4a9b
parent 615396 a65902e659ac0fbf92c038f8c55af41b54f1e2b2
child 615445 3961527f33fbfc04e4f9ad78babdacdada82d608
child 615452 b849d154756e6be359b852d59c7d9bebcfc69537
push id70342
push userbmo:emilio+bugs@crisal.io
push dateTue, 25 Jul 2017 22:17:49 +0000
reviewerscanaltinova
bugs1384020
milestone56.0a1
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>