From ccb4e958e591bd415e8517d26a6c42672000cbc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 30 Aug 2016 13:40:08 -0700 Subject: [PATCH] Add reftest for the correct restyling of containers that match slow selectors. --- tests/wpt/mozilla/meta/MANIFEST.json | 24 +++++++++++++++++++ .../tests/css/restyle-nth-child-ref.html | 17 +++++++++++++ .../mozilla/tests/css/restyle-nth-child.html | 24 +++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 tests/wpt/mozilla/tests/css/restyle-nth-child-ref.html create mode 100644 tests/wpt/mozilla/tests/css/restyle-nth-child.html diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index d94defbd2d7..3297053b159 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -4636,6 +4636,18 @@ "url": "/_mozilla/css/removeproperty.html" } ], + "css/restyle-nth-child.html": [ + { + "path": "css/restyle-nth-child.html", + "references": [ + [ + "/_mozilla/css/restyle-nth-child-ref.html", + "==" + ] + ], + "url": "/_mozilla/css/restyle-nth-child.html" + } + ], "css/restyle_hints_attr.html": [ { "path": "css/restyle_hints_attr.html", @@ -14006,6 +14018,18 @@ "url": "/_mozilla/css/removeproperty.html" } ], + "css/restyle-nth-child.html": [ + { + "path": "css/restyle-nth-child.html", + "references": [ + [ + "/_mozilla/css/restyle-nth-child-ref.html", + "==" + ] + ], + "url": "/_mozilla/css/restyle-nth-child.html" + } + ], "css/restyle_hints_attr.html": [ { "path": "css/restyle_hints_attr.html", diff --git a/tests/wpt/mozilla/tests/css/restyle-nth-child-ref.html b/tests/wpt/mozilla/tests/css/restyle-nth-child-ref.html new file mode 100644 index 00000000000..c59c9fde35c --- /dev/null +++ b/tests/wpt/mozilla/tests/css/restyle-nth-child-ref.html @@ -0,0 +1,17 @@ + + +CSS test reference. + +
+
+
+
diff --git a/tests/wpt/mozilla/tests/css/restyle-nth-child.html b/tests/wpt/mozilla/tests/css/restyle-nth-child.html new file mode 100644 index 00000000000..b7e1fb4b461 --- /dev/null +++ b/tests/wpt/mozilla/tests/css/restyle-nth-child.html @@ -0,0 +1,24 @@ + + +Restyling of a child of a parent that didn't match nth-child but now + does should be correct. + + +
+
+
+