Skip to content
Skip the list of specifications

css/css-sizing/aspect-ratio/parsing/

aspect-ratio-invalid.html

Passes: all 11 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['aspect-ratio'] = "auto / 5" should not set the property valuePasses
e.style['aspect-ratio'] = "auto / 16" should not set the property valuePasses
e.style['aspect-ratio'] = "16 9" should not set the property valuePasses
e.style['aspect-ratio'] = "16px / 9px" should not set the property valuePasses
e.style['aspect-ratio'] = "16 / -9" should not set the property valuePasses
e.style['aspect-ratio'] = "1 invalid" should not set the property valuePasses
e.style['aspect-ratio'] = "invalid 1.5" should not set the property valuePasses
e.style['aspect-ratio'] = "auto 1 / 1 auto" should not set the property valuePasses
e.style['aspect-ratio'] = "16 /" should not set the property valuePasses
e.style['aspect-ratio'] = "auto 16 /" should not set the property valuePasses
e.style['aspect-ratio'] = "16 / auto" should not set the property valuePasses

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