Skip to content
Skip the list of specifications

css/css-backgrounds/parsing/

background-size-computed.html

Passes: all 11 assertions match; 6 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 first5
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-size value '1px'1px auto1px autoPasses
Property background-size value '1px auto'1px auto1px autoPasses
Property background-size value '2% 3%'2% 3%2% 3%Passes
Property background-size value 'auto'autoautoPasses
Property background-size value 'auto auto'autoautoPasses
Property background-size value 'auto 4%'auto 4%auto 4%Passes
Property background-size value 'contain'containcontainPasses
Property background-size value 'cover'covercoverPasses
Property background-size value 'calc(10px + 0.5em) calc(10px - 0.5em)'30px 0px30px 0pxPasses
Property background-size value 'calc(10px - 0.5em) calc(10px + 0.5em)'0px 30px0px 30pxPasses
Property background-size value 'auto 1px, 2% 3%, contain'auto 1px, 2% 3%, containauto 1px, 2% 3%, containPasses

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