WPT
wpt / css / css-backgrounds / parsing / background-image-valid.html
Spec: CSS Backgrounds ↗
Runs: Chrome 155.0.8043.0 (wpt@b89af32bc, 2026-09-05) | Firefox 157.0a1 (wpt@b89af32bc, 2026-09-05) | Safari 251 preview (wpt@b89af32bc, 2026-09-05) | Ladybird 1.0-2f9d9 (wpt@b89af32bc, 2026-09-06) | 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 | 13/13 | 6/13 | 6/13 | 3/13 | 3/13 | 3/13 |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| e.style['background-image'] = "none" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-image'] = "url(\"http://www.example.com/\")" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-image'] = "none, url(\"http://www.example.com/\")" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-image'] = "light-dark(url(\"a.png\"), url(\"b.png\"))" should set the property value | PASS | PASS | PASS | FAIL | FAIL | FAIL |
| e.style['background-image'] = "light-dark(linear-gradient(red), url(\"b.png\"))" should set the property value | PASS | PASS | PASS | FAIL | FAIL | FAIL |
| e.style['background-image'] = "light-dark(image(blue), url(\"b.png\"))" should set the property value | PASS | PASS | PASS | FAIL | FAIL | FAIL |
| e.style['background-image'] = "cross-fade(50% url(http://www.example.com), 50% url(http://www.example.com))" should set the property value | PASS | FAIL | FAIL | FAIL | FAIL | FAIL |
| e.style['background-image'] = "cross-fade(red 33%, white 33%, blue)" should set the property value | PASS | FAIL | FAIL | FAIL | FAIL | FAIL |
| e.style['background-image'] = "cross-fade(blue, linear-gradient(90deg, rgb(2, 0, 36) 0%, rgb(0, 212, 255) 100%))" should set the property value | PASS | FAIL | FAIL | FAIL | FAIL | FAIL |
| e.style['background-image'] = "cross-fade( 1% red, green)" should set the property value | PASS | FAIL | FAIL | FAIL | FAIL | FAIL |
| e.style['background-image'] = "cross-fade(1% red , green)" should set the property value | PASS | FAIL | FAIL | FAIL | FAIL | FAIL |
| e.style['background-image'] = "cross-fade(1% red, green )" should set the property value | PASS | FAIL | FAIL | FAIL | FAIL | FAIL |
| e.style['background-image'] = "cross-fade(red 1%, cross-fade(red 2%, green))" should set the property value | PASS | FAIL | FAIL | FAIL | FAIL | FAIL |