Skip to content
Skip the list of specifications

css/css-anchor-position/

anchor-parse-invalid.html

Passes: all 25 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['margin-top'] = "anchor(--foo top)" should not set the property valuePasses
e.style['height'] = "anchor(--foo top)" should not set the property valuePasses
e.style['font-size'] = "anchor(--foo top)" should not set the property valuePasses
e.style['top'] = "anchor(--foo, top)" should not set the property valuePasses
e.style['top'] = "anchor(--foo top,)" should not set the property valuePasses
e.style['top'] = "anchor(--foo top bottom)" should not set the property valuePasses
e.style['top'] = "anchor(--foo top, 10px 20%)" should not set the property valuePasses
e.style['top'] = "anchor(--foo top, 10px, 20%)" should not set the property valuePasses
e.style['top'] = "anchor(2 * 20%)" should not set the property valuePasses
e.style['top'] = "anchor((2 * 20%))" should not set the property valuePasses
e.style['top'] = "anchor(foo top)" should not set the property valuePasses
e.style['top'] = "anchor(top foo)" should not set the property valuePasses
e.style['top'] = "anchor(--foo height)" should not set the property valuePasses
e.style['top'] = "anchor(--foo 10em)" should not set the property valuePasses
e.style['top'] = "anchor(--foo 100s)" should not set the property valuePasses
e.style['top'] = "anchor(--foo top, 1)" should not set the property valuePasses
e.style['top'] = "anchor(--foo top, 100s)" should not set the property valuePasses
e.style['top'] = "anchor(--foo top, bottom)" should not set the property valuePasses
e.style['top'] = "anchor(--foo top, anchor(bar top))" should not set the property valuePasses
e.style['top'] = "anchor(--foo top, anchor-size(bar height))" should not set the property valuePasses
e.style['top'] = "anchor(--foo top, auto" should not set the property valuePasses
e.style['top'] = "calc(anchor(foo top) + 10px + 10%)" should not set the property valuePasses
e.style['top'] = "calc(10px + 100 * anchor(--foo top, anchor(bar bottom)))" should not set the property valuePasses
e.style['top'] = "min(anchor(--foo top), anchor(--bar bottom), anchor-size(baz height))" should not set the property valuePasses
e.style['top'] = "calc(anchor(--foo top, 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.