Skip to content
Skip the list of specifications

css/css-anchor-position/

anchor-name-basics.html

Passes: all 10 assertions match

A parsing and computed-value check: each value the parser must accept or reject, and what it computes to.

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['anchor-name'] = "none" should set the property valuePasses
e.style['anchor-name'] = "--foo" should set the property valuePasses
e.style['anchor-name'] = "--foo, --bar" should set the property valuePasses
e.style['anchor-name'] = "foo-bar" should not set the property valuePasses
e.style['anchor-name'] = "--foo --bar" should not set the property valuePasses
e.style['anchor-name'] = "100px" should not set the property valuePasses
e.style['anchor-name'] = "100%" should not set the property valuePasses
Property anchor-name value 'none'Passes
Property anchor-name value '--foo'Passes
Property anchor-name value '--foo, --bar'Passes

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