Skip to content
Skip the list of specifications

css/css-anchor-position/

anchor-size-parse-valid.html

Passes: all 6 assertions match; 1 more could not be judged

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

Why some could not be judgedAssertions
7 calls with non-literal arguments1

Run it in the playgroundThe fileOn GitHubBrowsers’ results on wpt.fyi

Each assertion

A passing assertion got what it asked for, so only a failing one shows what it expected and what it got.

AssertionExpectedGotVerdict
e.style['width'] = "anchor-size()" should set the property valuePasses
e.style['width'] = "anchor-size(--foo)" should set the property valuePasses
e.style['width'] = "anchor-size(--foo, 10px)" should set the property valuePasses
e.style['width'] = "anchor-size(10px)" should set the property valuePasses
e.style['width'] = "anchor-size(--foo width, 0)" should set the property valuePasses
e.style['width'] = "calc(anchor-size(--foo width, 0))" should set the property valuePasses

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