Skip to content
Skip the list of specifications

css/css-backgrounds/parsing/

background-computed.html

Passes: all 37 assertions match; 2 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
No assertion with written values to accept or reject1
A script changes the document first1

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-attachment value 'local'locallocalPasses
Property background-attachment value 'scroll, fixed'scroll, fixedscroll, fixedPasses
Property background-attachment value 'local, fixed, scroll'local, fixed, scrolllocal, fixed, scrollPasses
Property background-attachment value 'local, fixed, scroll, fixed'local, fixed, scroll, fixedlocal, fixed, scroll, fixedPasses
Property background-clip value 'border-box'border-boxborder-boxPasses
Property background-clip value 'content-box, border-box'content-box, border-boxcontent-box, border-boxPasses
Property background-clip value 'border-box, padding-box, content-box'border-box, padding-box, content-boxborder-box, padding-box, content-boxPasses
Property background-clip value 'content-box, border-box, padding-box, content-box'content-box, border-box, padding-box, content-boxcontent-box, border-box, padding-box, content-boxPasses
Property background-clip value 'content-box, border-box, padding-box'content-box, border-box, padding-boxcontent-box, border-box, padding-boxPasses
Property background-clip value 'content-box, border-box, border-area'content-box, border-box, border-areacontent-box, border-box, border-areaPasses
Property background-clip value 'border-area text'border-area textborder-area textPasses
Property background-clip value 'border-area text, content-box'border-area text, content-boxborder-area text, content-boxPasses
Property background-color value 'rgb(255, 0, 0)'rgb(255, 0, 0)rgb(255, 0, 0)Passes
Property background-origin value 'border-box'border-boxborder-boxPasses
Property background-origin value 'content-box, border-box'content-box, border-boxcontent-box, border-boxPasses
Property background-origin value 'border-box, padding-box, content-box'border-box, padding-box, content-boxborder-box, padding-box, content-boxPasses
Property background-origin value 'content-box, border-box, padding-box, content-box'content-box, border-box, padding-box, content-boxcontent-box, border-box, padding-box, content-boxPasses
Property background-position value '50% 6px'50% 6px50% 6pxPasses
Property background-position value '12px 13px, 50% 6px'12px 13px, 50% 6px12px 13px, 50% 6pxPasses
Property background-position value '12px 13px, 50% 6px, 30px -10px'12px 13px, 50% 6px, 30px -10px12px 13px, 50% 6px, 30px -10pxPasses
Property background-position value '12px 13px, 50% 6px, 30px -10px, -7px 8px'12px 13px, 50% 6px, 30px -10px, -7px 8px12px 13px, 50% 6px, 30px -10px, -7px 8pxPasses
Property background-position-x value '0.5em'20px20pxPasses
Property background-position-x value '-20%, 10px'-20%, 10px-20%, 10pxPasses
Property background-position-x value 'center, left, right'50%, 0%, 100%50%, 0%, 100%Passes
Property background-position-x value 'calc(10px - 0.5em), -20%, right, 15%'-10px, -20%, 100%, 15%-10px, -20%, 100%, 15%Passes
Property background-position-y value '0.5em'20px20pxPasses
Property background-position-y value '-20%, 10px'-20%, 10px-20%, 10pxPasses
Property background-position-y value 'center, top, bottom'50%, 0%, 100%50%, 0%, 100%Passes
Property background-position-y value 'calc(10px - 0.5em), -20%, bottom, 15%'-10px, -20%, 100%, 15%-10px, -20%, 100%, 15%Passes
Property background-repeat value 'round'roundroundPasses
Property background-repeat value 'repeat-x, repeat'repeat-x, repeatrepeat-x, repeatPasses
Property background-repeat value 'repeat space, round no-repeat, repeat-x'repeat space, round no-repeat, repeat-xrepeat space, round no-repeat, repeat-xPasses
Property background-repeat value 'repeat-y, round no-repeat, repeat-x, repeat'repeat-y, round no-repeat, repeat-x, repeatrepeat-y, round no-repeat, repeat-x, repeatPasses
Property background-size value 'contain'containcontainPasses
Property background-size value 'auto 1px, 2% 3%'auto 1px, 2% 3%auto 1px, 2% 3%Passes
Property background-size value 'auto 1px, 2% 3%, contain'auto 1px, 2% 3%, containauto 1px, 2% 3%, containPasses
Property background-size value 'auto 1px, 2% 3%, contain, 7px 8px'auto 1px, 2% 3%, contain, 7px 8pxauto 1px, 2% 3%, contain, 7px 8pxPasses

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