WPT
wpt / css / css-variables / variable-definition.html
Spec: CSS Variables ↗
Runs: Chrome 155.0.8038.0 (wpt@b1a7025f8, 2026-09-02) | Firefox 157.0a1 (wpt@b1a7025f8, 2026-09-02) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-a7884 (wpt@b1a7025f8, 2026-09-02) | Servo Servo 0.5 (wpt@2ccd2cbf8, 2026-09-01) | Blitz 7727414ca (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 | 59/73 | 59/73 | 59/73 | 53/73 | 59/73 | 58/73 |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| no variable | PASS | PASS | PASS | PASS | PASS | PASS |
| variable | PASS | PASS | PASS | PASS | PASS | PASS |
| single char variable | PASS | PASS | PASS | PASS | PASS | PASS |
| single char '-' variable | PASS | PASS | PASS | PASS | PASS | PASS |
| no char variable | PASS | PASS | PASS | PASS | PASS | PASS |
| white space value (single space) | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL |
| white space value (double space) | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL |
| overwrite | PASS | PASS | PASS | PASS | PASS | PASS |
| can overwrite with no value | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL |
| can overwrite with space value | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL |
| case sensetivity | PASS | PASS | PASS | PASS | PASS | PASS |
| case sensetivity2 | PASS | PASS | PASS | PASS | PASS | PASS |
| parsing three dashes at start of variable | PASS | PASS | PASS | PASS | PASS | PASS |
| parsing multiple dashes with one dash at start of variable | PASS | PASS | PASS | PASS | PASS | PASS |
| leading white space (single space) | PASS | PASS | PASS | PASS | PASS | PASS |
| middle white space (single space) | PASS | PASS | PASS | PASS | PASS | PASS |
| trailing white space (single space) | PASS | PASS | PASS | PASS | PASS | PASS |
| leading white space (double space) 2 | PASS | PASS | PASS | PASS | PASS | PASS |
| middle white space (double space) 2 | PASS | PASS | PASS | PASS | PASS | PASS |
| trailing white space (double space) 2 | PASS | PASS | PASS | PASS | PASS | PASS |
| !important | PASS | PASS | PASS | PASS | PASS | PASS |
| !important 2 | PASS | PASS | PASS | FAIL | PASS | PASS |
| !important (with space) | PASS | PASS | PASS | FAIL | PASS | PASS |
| no variable (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| variable (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| single char variable (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| single char '-' variable (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| no char variable (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| white space value (single space) (Computed Style) | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL |
| white space value (double space) (Computed Style) | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL |
| overwrite (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| can overwrite with no value (Computed Style) | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL |
| can overwrite with space value (Computed Style) | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL |
| case sensetivity (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| case sensetivity2 (Computed Style) | PASS | PASS | PASS | PASS | PASS | FAIL |
| parsing three dashes at start of variable (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| parsing multiple dashes with one dash at start of variable (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| leading white space (single space) (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| middle white space (single space) (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| trailing white space (single space) (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| leading white space (double space) 2 (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| middle white space (double space) 2 (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| trailing white space (double space) 2 (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| !important (Computed Style) | PASS | PASS | PASS | PASS | PASS | PASS |
| !important 2 (Computed Style) | PASS | PASS | PASS | FAIL | PASS | PASS |
| !important (with space) (Computed Style) | PASS | PASS | PASS | FAIL | PASS | PASS |
| no variable (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| variable (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| single char variable (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| single char '-' variable (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| no char variable (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| white space value (single space) (Cascading) | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL |
| white space value (double space) (Cascading) | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL |
| overwrite (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| can overwrite with no value (Cascading) | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL |
| can overwrite with space value (Cascading) | FAIL | FAIL | FAIL | FAIL | FAIL | FAIL |
| case sensetivity (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| case sensetivity2 (Cascading) | PASS | PASS | PASS | PASS | PASS | FAIL |
| parsing three dashes at start of variable (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| parsing multiple dashes with one dash at start of variable (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| leading white space (single space) (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| middle white space (single space) (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| trailing white space (single space) (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| leading white space (double space) 2 (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| middle white space (double space) 2 (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| trailing white space (double space) 2 (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| !important (Cascading) | PASS | PASS | PASS | PASS | PASS | PASS |
| !important 2 (Cascading) | PASS | PASS | PASS | FAIL | PASS | PASS |
| !important (with space) (Cascading) | PASS | PASS | PASS | FAIL | PASS | PASS |
| basic CSSOM.setProperty | PASS | PASS | PASS | PASS | PASS | FAIL |
| CSSOM.setProperty with space 1 | FAIL | FAIL | FAIL | FAIL | FAIL | PASS |
| CSSOM.setProperty with space 2 | FAIL | FAIL | FAIL | FAIL | FAIL | PASS |
| CSSOM.setProperty with space 3 | PASS | PASS | PASS | PASS | PASS | PASS |