Skip to content
Skip the list of specifications

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 judgedAssertions
A script changes the document first3
No assertion with written values to accept or reject1

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.

AssertionExpectedGotVerdict
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% 6px50% 6pxPasses
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% 8px50% 8pxPasses
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 13px12px 13pxPasses
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% 15px50% 15pxPasses
Property background-position value 'bottom 16% left'0% 84%0% 84%Passes
Property background-position value 'top 17px right -18px'calc(100% + 18px) 17pxcalc(100% + 18px) 17pxPasses
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 -10px30px -10pxPasses
Property background-position value 'calc(10px - 0.5em) calc(10px + 0.5em)'-10px 30px-10px 30pxPasses
Property background-position value '12px 13px, 50% 6px, 30px -10px'12px 13px, 50% 6px, 30px -10px12px 13px, 50% 6px, 30px -10pxPasses

Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.