Skip to content
Skip the list of specifications

css/css-masking/parsing/

mask-valid.sub.html

Passes: all 27 assertions match

A parsing check: each value the parser must accept or reject.

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
e.style['mask'] = "none" should set the property valueacceptedacceptedPasses
e.style['mask'] = "linear-gradient(to left bottom, red, blue)" should set the property valueacceptedacceptedPasses
e.style['mask'] = "linear-gradient(to left bottom, red, blue) luminance" should set the property valueacceptedacceptedPasses
e.style['mask'] = "url(\"https://{{host}}/\")" should set the property valueacceptedacceptedPasses
e.style['mask'] = "linear-gradient(to left bottom, red, blue) 1px 2px" should set the property valueacceptedacceptedPasses
e.style['mask'] = "url(\"https://{{host}}/\") 1px 2px / contain" should set the property valueacceptedacceptedPasses
e.style['mask'] = "repeat-y" should set the property valueacceptedacceptedPasses
e.style['mask'] = "border-box" should set the property valueacceptedacceptedPasses
e.style['mask'] = "linear-gradient(to left bottom, red, blue) padding-box" should set the property valueacceptedacceptedPasses
e.style['mask'] = "content-box" should set the property valueacceptedacceptedPasses
e.style['mask'] = "url(\"https://{{host}}/\") fill-box" should set the property valueacceptedacceptedPasses
e.style['mask'] = "linear-gradient(to left bottom, red, blue) stroke-box" should set the property valueacceptedacceptedPasses
e.style['mask'] = "view-box" should set the property valueacceptedacceptedPasses
e.style['mask'] = "no-clip" should set the property valueacceptedacceptedPasses
e.style['mask'] = "url(\"https://{{host}}/\") add" should set the property valueacceptedacceptedPasses
e.style['mask'] = "subtract" should set the property valueacceptedacceptedPasses
e.style['mask'] = "url(\"https://{{host}}/\") intersect" should set the property valueacceptedacceptedPasses
e.style['mask'] = "linear-gradient(to left bottom, red, blue) exclude" should set the property valueacceptedacceptedPasses
e.style['mask'] = "alpha" should set the property valueacceptedacceptedPasses
e.style['mask'] = "url(\"https://{{host}}/\") alpha" should set the property valueacceptedacceptedPasses
e.style['mask'] = "border-box border-box" should set the property valueacceptedacceptedPasses
e.style['mask'] = "content-box content-box" should set the property valueacceptedacceptedPasses
e.style['mask'] = "border-box content-box" should set the property valueacceptedacceptedPasses
e.style['mask'] = "border-box no-clip" should set the property valueacceptedacceptedPasses
e.style['mask'] = "intersect no-clip space round 1px 2px / contain stroke-box linear-gradient(to left bottom, red, blue) luminance" should set the property valueacceptedacceptedPasses
e.style['mask'] = "intersect no-clip space round 1px 2px / contain view-box, stroke-box linear-gradient(to left bottom, red, blue) luminance" should set the property valueacceptedacceptedPasses
e.style['mask'] = "none alpha" should set the property valueacceptedacceptedPasses

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