/css/cssom/CSSStyleSheet.html| status | subtest | message |
|---|---|---|
| PASS | preconditions | |
| PASS | insertRule with #bar selector | |
| FAIL | insertRule with no argument throws | assert_throws_js: function "function() { styleSheet.insertRule() }" threw object "SyntaxError: Failed to parse CSS rule: """ ("SyntaxError") expected instance of function "function TypeError() { [nati… |
| PASS | insertRule with index greater than length throws | |
| PASS | deleteRule(1) | |
| FAIL | deleteRule with no argument throws | assert_throws_js: function "function() { styleSheet.deleteRule() }" did not throw |
| FAIL | deleteRule on empty style sheet throws | assert_throws_dom: function "function() { emptyStyleSheet.deleteRule(0) }" did not throw |
| FAIL | removeRule with no argument removes first rule | styleSheet.removeRule is not a function |
| FAIL | removeRule on empty style sheet throws | assert_throws_dom: function "function() { emptyStyleSheet.removeRule(0) }" threw object "TypeError: emptyStyleSheet.removeRule is not a function" that is not a DOMException IndexSizeError: property "c… |
| FAIL | addRule with @media rule | styleSheet.addRule is not a function |
| FAIL | removeRule(1) | styleSheet.removeRule is not a function |
| FAIL | addRule with #foo selectors | styleSheet.addRule is not a function |
| FAIL | addRule with no argument adds "undefined" selector | styleSheet.addRule is not a function |
| FAIL | addRule with index greater than length throws | assert_throws_dom: function "function() { styleSheet.addRule("#foo", "color: red", styleSheet.cssRules.length + 1); }" threw object "TypeError: styleSheet.addRule is not a function… |
| PASS | cssRules and rules are the same object | |
| PASS | cssRules returns the same object twice | |
| PASS | rules returns the same object twice |
bundle built 2026-07-16T07:16:48.063Z