Bug 1422319: Upstream :any-link reftest to WPT. r?xidorn
MozReview-Commit-ID: KOYqClzV8eo
deleted file mode 100644
--- a/layout/reftests/bugs/1364335-ref.html
+++ /dev/null
@@ -1,7 +0,0 @@
-<!DOCTYPE html>
-<style>
- span { color: green; }
-</style>
-<body>
- <a></a><span>This should be green</span>
-</body>
deleted file mode 100644
--- a/layout/reftests/bugs/1364335.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<!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
@@ -1995,17 +1995,16 @@ skip-if((stylo||styloVsGecko)&&isDebugBu
== 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
== 1364280-1.html 1364280-1-ref.html
== 1364280-2a.html 1364280-2-ref.html
== 1364280-2b.html 1364280-2-ref.html
== 1364280-2c.html 1364280-2-ref.html
-== 1364335.html 1364335-ref.html
== 1364360-1.html 1364360-1-ref.html
== 1365159-1.html 1365159-1-ref.html
fails-if(!stylo||styloVsGecko) == 1365162-1.html 1365162-1-ref.html
== 1352306-1.html 1352306-1-ref.html
== 1366144.html 1366144-ref.html
== 1367592-1.html 1367592-1-ref.html
== 1368113-1.html 1368113-1-ref.html
== 1369584-1a.html 1369584-1-ref.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -155834,16 +155834,28 @@
[
"/css/motion/offset-rotate-ref.html",
"=="
]
],
{}
]
],
+ "css/selectors/any-link-dynamic-001.html": [
+ [
+ "/css/selectors/any-link-dynamic-001.html",
+ [
+ [
+ "/css/selectors/any-link-dynamic-001-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"css/selectors/focus-within-001.html": [
[
"/css/selectors/focus-within-001.html",
[
[
"/css/selectors/focus-within-001-ref.html",
"=="
]
@@ -254340,16 +254352,21 @@
{}
]
],
"css/selectors/TODO": [
[
{}
]
],
+ "css/selectors/any-link-dynamic-001-ref.html": [
+ [
+ {}
+ ]
+ ],
"css/selectors/attribute-selectors/attribute-case/resources/semantics-quirks.html": [
[
{}
]
],
"css/selectors/attribute-selectors/attribute-case/resources/semantics-xml.xhtml": [
[
{}
@@ -512976,16 +512993,24 @@
"css/selectors/README": [
"6733737a200903ff0bdb21abfb34b7cb62c630f6",
"support"
],
"css/selectors/TODO": [
"b45da5560d0eb821b5552f1b67fab5cead4508b1",
"support"
],
+ "css/selectors/any-link-dynamic-001-ref.html": [
+ "342d89969da0ca3782efacee0ecbf882c718d6c6",
+ "support"
+ ],
+ "css/selectors/any-link-dynamic-001.html": [
+ "c33602e863151182d29afd88a8878374bb118b69",
+ "reftest"
+ ],
"css/selectors/attribute-selectors/attribute-case/cssom.html": [
"d5e05750213fbf7959125d64e9ea1a26948ba91d",
"testharness"
],
"css/selectors/attribute-selectors/attribute-case/resources/semantics-quirks.html": [
"5389ddec11c37e4fd7387de59ac889592f3bb6ec",
"support"
],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/selectors/any-link-dynamic-001-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS test reference</title>
+<link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
+<style>
+ span { color: green; }
+</style>
+<body>
+ <a></a><span>This should be green</span>
+</body>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/selectors/any-link-dynamic-001.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS test: Handling of dynamic changes to :any-link selectors</title>
+<link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
+<link rel="match" href="any-link-dynamic-001-ref.html">
+<link rel="help" href="https://drafts.csswg.org/selectors-4/#the-any-link-pseudo">
+<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>