Bug 1364335 tests. Test dynamic changes to :any-link matching. r=emilio
authorBoris Zbarsky <bzbarsky@mit.edu>
Mon, 15 May 2017 12:23:47 -0400
changeset 358425 91f401077e0bd56d14abc80ae167b5f262eb21c8
parent 358424 20c570b957c61061b1353dbd2ab6aa7f5376dea2
child 358426 46178574af0741ab1b4fefe433d333c031834907
push id90325
push userbzbarsky@mozilla.com
push dateMon, 15 May 2017 16:25:15 +0000
treeherdermozilla-inbound@46178574af07 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1364335
milestone55.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 1364335 tests. Test dynamic changes to :any-link matching. r=emilio MozReview-Commit-ID: Jn9RLj59ntr
layout/reftests/bugs/1364335-ref.html
layout/reftests/bugs/1364335.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1364335-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<style>
+  span { color: green; }
+</style>
+<body>
+  <a></a><span>This should be green</span>
+</body>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1364335.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<style>
+  span { color: green; }
+  :any-link + span { color: red; }
+</style>
+<body onload="window.oldColor = getComputedStyle(document.querySelector('span')).color;
+              document.querySelector('a').removeAttribute('href');">
+  <a href=""></a><span>This should be green</span>
+</body>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1992,8 +1992,9 @@ fails-if(stylo) == 1322512-1.html 132251
 == 1330051.svg 1330051-ref.svg
 == 1348481-1.html 1348481-ref.html
 == 1348481-2.html 1348481-ref.html
 fails-if(stylo) == 1348481-3.html 1348481-ref.html
 == 1352464-1.html 1352464-1-ref.html
 == 1358375-1.html 1358375-ref.html
 == 1358375-2.html 1358375-ref.html
 == 1358375-3.html 1358375-ref.html
+== 1364335.html 1364335-ref.html