css/css-backgrounds/parsing/
background-position-x-computed.html
Fails: 14 of 16 assertions match, 2 do not; 4 more could not be judged
A parsing and computed-value check: each value the parser must accept or reject, and what it computes to.
| Why some could not be judged | Assertions |
|---|---|
| A script changes the document first | 3 |
| No assertion with written values to accept or reject | 1 |
Run it in the playgroundThe fileOn GitHubBrowsers’ results on wpt.fyi
Each assertion
Every row shows what the file expected and what the engine returned, whether they match or not.
| Assertion | Expected | Got | Verdict |
|---|---|---|---|
Property background-position-x value 'x-start' | x-start | 0% | Fails |
Property background-position-x value 'x-end' | x-end | 100% | Fails |
Property background-position-x value 'center' | 50% | 50% | Passes |
Property background-position-x value 'left' | 0% | 0% | Passes |
Property background-position-x value 'right' | 100% | 100% | Passes |
Property background-position-x value '-20%' | -20% | -20% | Passes |
Property background-position-x value '10px' | 10px | 10px | Passes |
Property background-position-x value '0.5em' | 20px | 20px | Passes |
Property background-position-x value 'calc(10px - 0.5em)' | -10px | -10px | Passes |
Property background-position-x value 'left -20%' | -20% | -20% | Passes |
Property background-position-x value 'right -10px' | calc(100% + 10px) | calc(100% + 10px) | Passes |
Property background-position-x value '-20%, 10px' | -20%, 10px | -20%, 10px | Passes |
Property background-position-x value 'center, left, right' | 50%, 0%, 100% | 50%, 0%, 100% | Passes |
Property background-position-x value '0.5em, x-start, x-end' | 20px, 0%, 100% | 20px, 0%, 100% | Passes |
Property background-position-x value 'calc(10px - 0.5em), -20%, 10px' | -10px, -20%, 10px | -10px, -20%, 10px | Passes |
Property background-position-x value 'calc(10px - 0.5em), left -20%, right 10px' | -10px, -20%, calc(100% - 10px) | -10px, -20%, calc(100% - 10px) | Passes |
Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.