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 judged | Assertions |
|---|---|
| A script changes the document first | 5 |
| 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-size value '1px' | 1px auto | 1px auto | Passes |
Property background-size value '1px auto' | 1px auto | 1px auto | Passes |
Property background-size value '2% 3%' | 2% 3% | 2% 3% | Passes |
Property background-size value 'auto' | auto | auto | Passes |
Property background-size value 'auto auto' | auto | auto | Passes |
Property background-size value 'auto 4%' | auto 4% | auto 4% | Passes |
Property background-size value 'contain' | contain | contain | Passes |
Property background-size value 'cover' | cover | cover | Passes |
Property background-size value 'calc(10px + 0.5em) calc(10px - 0.5em)' | 30px 0px | 30px 0px | Passes |
Property background-size value 'calc(10px - 0.5em) calc(10px + 0.5em)' | 0px 30px | 0px 30px | Passes |
Property background-size value 'auto 1px, 2% 3%, contain' | auto 1px, 2% 3%, contain | auto 1px, 2% 3%, contain | Passes |
Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.