WPT
wpt / css / cssom / CSSStyleSheet.html
Spec: CSSOM ↗
Runs: Chrome 155.0.8039.0 (wpt@508cc6a62, 2026-09-03) | Firefox 157.0a1 (wpt@508cc6a62, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-56c61 (wpt@8fdda8ce4, 2026-09-03) | Servo Servo 0.6 (wpt@09159dcb3, 2026-09-02) | Blitz 188486089 (wpt@a95401e4e, 2026-09-02)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 17/17 | 17/17 | 17/17 | 17/17 | 17/17 | 0/17 |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| preconditions | PASS | PASS | PASS | PASS | PASS | — |
| insertRule with #bar selector | PASS | PASS | PASS | PASS | PASS | — |
| insertRule with no argument throws | PASS | PASS | PASS | PASS | PASS | — |
| insertRule with index greater than length throws | PASS | PASS | PASS | PASS | PASS | — |
| deleteRule(1) | PASS | PASS | PASS | PASS | PASS | — |
| deleteRule with no argument throws | PASS | PASS | PASS | PASS | PASS | — |
| deleteRule on empty style sheet throws | PASS | PASS | PASS | PASS | PASS | — |
| removeRule with no argument removes first rule | PASS | PASS | PASS | PASS | PASS | — |
| removeRule on empty style sheet throws | PASS | PASS | PASS | PASS | PASS | — |
| addRule with @media rule | PASS | PASS | PASS | PASS | PASS | — |
| removeRule(1) | PASS | PASS | PASS | PASS | PASS | — |
| addRule with #foo selectors | PASS | PASS | PASS | PASS | PASS | — |
| addRule with no argument adds "undefined" selector | PASS | PASS | PASS | PASS | PASS | — |
| addRule with index greater than length throws | PASS | PASS | PASS | PASS | PASS | — |
| cssRules and rules are the same object | PASS | PASS | PASS | PASS | PASS | — |
| cssRules returns the same object twice | PASS | PASS | PASS | PASS | PASS | — |
| rules returns the same object twice | PASS | PASS | PASS | PASS | PASS | — |