css/css-backgrounds/parsing/
background-position-computed.html
Passes: all 29 assertions match; 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 value '1px' | 1px 50% | 1px 50% | Passes |
Property background-position value '1px center' | 1px 50% | 1px 50% | Passes |
Property background-position value '-2% -3%' | -2% -3% | -2% -3% | Passes |
Property background-position value '5% top' | 5% 0% | 5% 0% | Passes |
Property background-position value 'center' | 50% 50% | 50% 50% | Passes |
Property background-position value 'center center' | 50% 50% | 50% 50% | Passes |
Property background-position value 'center 6px' | 50% 6px | 50% 6px | Passes |
Property background-position value 'center left' | 0% 50% | 0% 50% | Passes |
Property background-position value 'center right 7%' | 93% 50% | 93% 50% | Passes |
Property background-position value 'center bottom' | 50% 100% | 50% 100% | Passes |
Property background-position value 'center top 8px' | 50% 8px | 50% 8px | Passes |
Property background-position value 'left' | 0% 50% | 0% 50% | Passes |
Property background-position value 'right 9%' | 100% 9% | 100% 9% | Passes |
Property background-position value 'left 10px center' | 10px 50% | 10px 50% | Passes |
Property background-position value 'right 11% bottom' | 89% 100% | 89% 100% | Passes |
Property background-position value 'left 12px top 13px' | 12px 13px | 12px 13px | Passes |
Property background-position value 'right center' | 100% 50% | 100% 50% | Passes |
Property background-position value 'left bottom' | 0% 100% | 0% 100% | Passes |
Property background-position value 'right top 14%' | 100% 14% | 100% 14% | Passes |
Property background-position value 'bottom' | 50% 100% | 50% 100% | Passes |
Property background-position value 'top 15px center' | 50% 15px | 50% 15px | Passes |
Property background-position value 'bottom 16% left' | 0% 84% | 0% 84% | Passes |
Property background-position value 'top 17px right -18px' | calc(100% + 18px) 17px | calc(100% + 18px) 17px | Passes |
Property background-position value 'bottom center' | 50% 100% | 50% 100% | Passes |
Property background-position value 'top left' | 0% 0% | 0% 0% | Passes |
Property background-position value 'bottom right 19%' | 81% 100% | 81% 100% | Passes |
Property background-position value 'calc(10px + 0.5em) calc(10px - 0.5em)' | 30px -10px | 30px -10px | Passes |
Property background-position value 'calc(10px - 0.5em) calc(10px + 0.5em)' | -10px 30px | -10px 30px | Passes |
Property background-position value '12px 13px, 50% 6px, 30px -10px' | 12px 13px, 50% 6px, 30px -10px | 12px 13px, 50% 6px, 30px -10px | Passes |
Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.