WPT
wpt / css / css-backgrounds / parsing / background-position-x-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 | 12/15 | 12/15 | 15/15 | 12/15 | 12/15 | 12/15 |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| e.style['background-position-x'] = "center" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-position-x'] = "left" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-position-x'] = "right" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-position-x'] = "x-start" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['background-position-x'] = "x-end" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['background-position-x'] = "-20%" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-position-x'] = "10px" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-position-x'] = "0.5em" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-position-x'] = "calc(10px - 0.5em)" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-position-x'] = "left -20%" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-position-x'] = "right 10px" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-position-x'] = "-20%, 10px" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-position-x'] = "center, left, right" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |
| e.style['background-position-x'] = "0.5em, x-start, x-end" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['background-position-x'] = "calc(10px - 0.5em), left -20%, right 10px" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |