Skip to content
Skip the list of specifications

css/css-anchor-position/

anchor-size-parse-invalid.html

Passes: all 22 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

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

AssertionExpectedGotVerdict
e.style['font-size'] = "anchor-size(--foo width)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo, width)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo width,)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo width height)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo width, 10px 20%)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo width, 10px, 20%)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo,)" should not set the property valuePasses
e.style['width'] = "anchor-size(, 10px)" should not set the property valuePasses
e.style['width'] = "anchor-size(foo width)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo top)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo 10em)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo 100s)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo 50%)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo width, 1)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo width, 100s)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo width, height)" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo width, anchor-size(bar width))" should not set the property valuePasses
e.style['width'] = "anchor-size(--foo width, anchor(--bar top))" should not set the property valuePasses
e.style['width'] = "calc(anchor-size(foo width) + 10px + 10%)" should not set the property valuePasses
e.style['width'] = "calc(10px + 100 * anchor-size(--foo width, anchor-size(bar bottom)))" should not set the property valuePasses
e.style['width'] = "min(anchor-size(--foo width), anchor-size(--bar height), anchor(--baz top))" should not set the property valuePasses
e.style['top'] = "calc(anchor-size(--foo width, 1) + 1px)" should not set the property valuePasses

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