Skip to content
Skip the list of specifications

css/css-anchor-position/

position-anchor-basics.html

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

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