Skip to content
Skip the list of specifications

css/css-anchor-position/

anchor-parse-valid.html

Passes: all 7 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
2 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['top'] = "calc((anchor(--foo top) + anchor(--bar bottom)) / 2)" should set the property valuePasses
e.style['top'] = "calc(0.5 * (anchor(--foo top) + anchor(--bar bottom)))" should set the property valuePasses
e.style['top'] = "anchor(--foo top, calc(0.5 * anchor(--bar bottom)))" should set the property valuePasses
e.style['top'] = "min(100px, 10%, anchor(--foo top), anchor(--bar bottom))" should set the property valuePasses
e.style['top'] = "calc(anchor(--foo left, 1px) + 10%)" should set the property valuePasses
e.style['top'] = "anchor(--foo left, 0)" should set the property valuePasses
e.style['top'] = "calc(anchor(--foo left, 0))" should set the property valuePasses

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