Fail | CSSStyleRule is a CSSGroupingRule | assert_equals: expected function "function CSSGroupingRule() { [native code] }" but got function "function CSSRule() { [native code] }" at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/css/css-nesting/cssom.html:12:5)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/css/css-nesting/cssom.html:11:3 Asserts runFail | assert_equals(function "function CSSRule() { [native code] }", function "function CSSGroupingRule() { [native code] }")
at Test.<anonymous> ( /css/css-nesting/cssom.html:12:5) |
|
Pass | Simple CSSOM manipulation of subrules | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /css/css-nesting/cssom.html:17:5) | Pass | assert_equals(1, 1)
at Test.<anonymous> ( /css/css-nesting/cssom.html:19:5) | Pass | assert_equals(".a { color: red; }", ".a { color: red; }")
at Test.<anonymous> ( /css/css-nesting/cssom.html:20:5) | Pass | assert_equals(".a {\n color: red;\n & .b { color: green; }\n & .d { color: hotpink; }\n & .c { color: blue; }\n}", ".a {\n color: red;\n & .b { color: green; }\n & .d { color: hotpink; }\n & .c { color: blue; }\n}", "inserting should work")
at Test.<anonymous> ( /css/css-nesting/cssom.html:26:5) | Pass | assert_equals(".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}", ".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}", "deleting should work")
at Test.<anonymous> ( /css/css-nesting/cssom.html:36:5) |
|
Pass | Simple CSSOM manipulation of subrules 1 | Asserts runPass | assert_throws_dom("IndexSizeError", function "() => { ss.cssRules[0].insertRule('& .broken {}', 3); }")
at Test.<anonymous> ( /css/css-nesting/cssom.html:55:5) | Pass | assert_equals(".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}", ".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}", "unchanged after no-insert")
at Test.<anonymous> ( /css/css-nesting/cssom.html:56:5) |
|
Pass | Simple CSSOM manipulation of subrules 2 | Asserts runPass | assert_throws_dom("IndexSizeError", function "() => { ss.cssRules[0].insertRule('& .broken {}', -1); }")
at Test.<anonymous> ( /css/css-nesting/cssom.html:62:5) | Pass | assert_equals(".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}", ".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}", "unchanged after no-insert")
at Test.<anonymous> ( /css/css-nesting/cssom.html:63:5) |
|
Pass | Simple CSSOM manipulation of subrules 3 | Asserts runPass | assert_throws_dom("IndexSizeError", function "() => { ss.cssRules[0].deleteRule(5); }")
at Test.<anonymous> ( /css/css-nesting/cssom.html:69:5) | Pass | assert_equals(".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}", ".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}", "unchanged after no-delete")
at Test.<anonymous> ( /css/css-nesting/cssom.html:70:5) |
|
Pass | Simple CSSOM manipulation of subrules 4 | Asserts runPass | assert_equals(undefined, undefined, "subscript out-of-bounds returns undefined")
at Test.<anonymous> ( /css/css-nesting/cssom.html:76:5) | Pass | assert_equals(null, null, "item() out-of-bounds returns null")
at Test.<anonymous> ( /css/css-nesting/cssom.html:77:5) | Pass | assert_equals(".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}", ".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}", "unchanged after no-access")
at Test.<anonymous> ( /css/css-nesting/cssom.html:78:5) |
|
Pass | Simple CSSOM manipulation of subrules 5 | Asserts runPass | assert_throws_dom("SyntaxError", function "() => { ss.cssRules[0].insertRule('% {}'); }")
at Test.<anonymous> ( /css/css-nesting/cssom.html:86:5) | Pass | assert_equals(".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}", ".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}", "unchanged after invalid rule")
at Test.<anonymous> ( /css/css-nesting/cssom.html:87:5) |
|
Pass | Simple CSSOM manipulation of subrules 6 | Asserts runPass | assert_equals("& .c { color: blue; }", "& .c { color: blue; }")
at Test.<anonymous> ( /css/css-nesting/cssom.html:94:5) |
|
Pass | Simple CSSOM manipulation of subrules 7 | Asserts runPass | assert_equals(".a {\n color: red;\n & .b { color: green; }\n @supports selector(&) {\n & div { font-size: 10px; }\n}\n & .c { color: blue; }\n}", ".a {\n color: red;\n & .b { color: green; }\n @supports selector(&) {\n & div { font-size: 10px; }\n}\n & .c { color: blue; }\n}", "@supports is added")
at Test.<anonymous> ( /css/css-nesting/cssom.html:103:5) | Pass | assert_equals(object "[object CSSStyleRule]", object "[object CSSStyleRule]")
at Test.<anonymous> ( /css/css-nesting/cssom.html:113:5) | Pass | assert_equals(".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}", ".a {\n color: red;\n & .b { color: green; }\n & .c { color: blue; }\n}")
at Test.<anonymous> ( /css/css-nesting/cssom.html:115:5) |
|
Pass | Simple CSSOM manipulation of subrules 8 | Asserts runPass | assert_equals(".a {\n color: olivedrab;\n & .b { color: green; }\n & .c { color: blue; }\n}", ".a {\n color: olivedrab;\n & .b { color: green; }\n & .c { color: blue; }\n}", "color is changed, new rule is ignored")
at Test.<anonymous> ( /css/css-nesting/cssom.html:124:5) |
|
Pass | Simple CSSOM manipulation of subrules 9 | Asserts runPass | assert_equals(".a {\n color: red;\n div & { }\n div.b .c & { color: green; }\n .c div.b &, div & { color: blue; }\n}", ".a {\n color: red;\n div & { }\n div.b .c & { color: green; }\n .c div.b &, div & { color: blue; }\n}", "selectorText and insertRule")
at Test.<anonymous> ( /css/css-nesting/cssom.html:138:5) |
|
Pass | Simple CSSOM manipulation of subrules 10 | Asserts runPass | assert_equals(".a {\n :is(!& .foo, .b) { color: green; }\n}", ".a {\n :is(!& .foo, .b) { color: green; }\n}", "invalid rule containing ampersand is kept in serialization")
at Test.<anonymous> ( /css/css-nesting/cssom.html:153:5) |
|
Pass | Mutating the selectorText of outer rule invalidates inner rules | Asserts runPass | assert_equals("auto", "auto")
at Test.<anonymous> ( /css/css-nesting/cssom.html:177:5) | Pass | assert_equals("auto", "auto")
at Test.<anonymous> ( /css/css-nesting/cssom.html:178:5) | Pass | assert_equals("auto", "auto")
at Test.<anonymous> ( /css/css-nesting/cssom.html:179:5) | Pass | assert_equals("1", "1")
at Test.<anonymous> ( /css/css-nesting/cssom.html:184:5) | Pass | assert_equals("1", "1")
at Test.<anonymous> ( /css/css-nesting/cssom.html:185:5) | Pass | assert_equals("1", "1")
at Test.<anonymous> ( /css/css-nesting/cssom.html:186:5) |
|
Fail | Manipulation of nested declarations through CSSOM | Failed to execute 'insertRule' on 'CSSStyleRule': the rule 'z-index: 3;' is invalid and cannot be parsed.Error: Failed to execute 'insertRule' on 'CSSStyleRule': the rule 'z-index: 3;' is invalid and cannot be parsed.
at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/css/css-nesting/cssom.html:208:10)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/css/css-nesting/cssom.html:190:3 Asserts runPass | assert_equals("1", "1")
at Test.<anonymous> ( /css/css-nesting/cssom.html:204:5) | Pass | assert_equals(1, 1)
at Test.<anonymous> ( /css/css-nesting/cssom.html:207:5) |
|