WPT
wpt / css / css-backgrounds / parsing / background-color-valid.html
Spec: CSS Backgrounds ↗
Runs: Chrome 155.0.8042.0 (wpt@0a3996025, 2026-09-04) | Firefox 157.0a1 (wpt@972e0e100, 2026-09-04) | Safari 251 preview (wpt@972e0e100, 2026-09-04) | Ladybird 1.0-3fd2d (wpt@c29bd2aee, 2026-09-04) | Servo Servo 0.6 (wpt@2c385f65e, 2026-09-04) | Blitz a50cb8971 (wpt@a95401e4e, 2026-09-03)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 9/9 | 9/9 | 9/9 | 9/9 | 9/9 | 9/9 |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| e.style['background-color'] = "currentcolor" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-color'] = "currentColor" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-color'] = "red" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-color'] = "#00FF00" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-color'] = "rgb(0, 0, 255)" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-color'] = "rgb(100%, 100%, 0%)" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-color'] = "hsl(120, 100%, 50%)" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-color'] = "teal" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-color'] = "transparent" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |