diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index 340cbde980b..4dcc6df054e 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -3119,6 +3119,18 @@ "url": "/_mozilla/css/quotes_simple_a.html" } ], + "css/restyle_hints_attr.html": [ + { + "path": "css/restyle_hints_attr.html", + "references": [ + [ + "/_mozilla/css/restyle_hints_attr_ref.html", + "==" + ] + ], + "url": "/_mozilla/css/restyle_hints_attr.html" + } + ], "css/restyle_hints_state.html": [ { "path": "css/restyle_hints_state.html", @@ -8052,6 +8064,18 @@ "url": "/_mozilla/css/quotes_simple_a.html" } ], + "css/restyle_hints_attr.html": [ + { + "path": "css/restyle_hints_attr.html", + "references": [ + [ + "/_mozilla/css/restyle_hints_attr_ref.html", + "==" + ] + ], + "url": "/_mozilla/css/restyle_hints_attr.html" + } + ], "css/restyle_hints_state.html": [ { "path": "css/restyle_hints_state.html", diff --git a/tests/wpt/mozilla/tests/css/restyle_hints_attr.css b/tests/wpt/mozilla/tests/css/restyle_hints_attr.css new file mode 100644 index 00000000000..64d332c31f7 --- /dev/null +++ b/tests/wpt/mozilla/tests/css/restyle_hints_attr.css @@ -0,0 +1,44 @@ +div { + background-color: black; + padding: 10px; + width: 50px; + height: 50px; + color: gray; +} + +div[foo=kokosnuss] { + background: black; +} + +div[foo][bar] { + background: red; +} + +div[foo=kokosnuss][bar~=fett] { + background: green; +} + +div[bar] > div[baz] div { + color: cyan; +} + +div[foo][bar~=butter] div { + background: purple; + color: white; +} + +div[foo][bar~=butter] > div { + background: yellow; +} + +div[bar~=butter][foo=kokosnuss] + div { + background: pink; +} + +div[foo=kokosnuss] ~ div { + background: green; +} + +div + div[foo=keine][bar=ahnung] { + background: lavender; +} diff --git a/tests/wpt/mozilla/tests/css/restyle_hints_attr.html b/tests/wpt/mozilla/tests/css/restyle_hints_attr.html new file mode 100644 index 00000000000..d9c55498f8f --- /dev/null +++ b/tests/wpt/mozilla/tests/css/restyle_hints_attr.html @@ -0,0 +1,35 @@ + + +