Skip to content
Skip the list of specifications

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

aspect-ratio-valid.html

Passes: all 14 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" should set the property valuePasses
e.style['aspect-ratio'] = "16" should set the property valuePasses
e.style['aspect-ratio'] = "1/1" should set the property valuePasses
e.style['aspect-ratio'] = "16.3 / 1" should set the property valuePasses
e.style['aspect-ratio'] = "16 / 9" should set the property valuePasses
e.style['aspect-ratio'] = "16.3 / 9.4" should set the property valuePasses
e.style['aspect-ratio'] = "16/9" should set the property valuePasses
e.style['aspect-ratio'] = "16 /9" should set the property valuePasses
e.style['aspect-ratio'] = "16/ 9" should set the property valuePasses
e.style['aspect-ratio'] = "0 / 9" should set the property valuePasses
e.style['aspect-ratio'] = "16 / 0" should set the property valuePasses
e.style['aspect-ratio'] = "auto 16" should set the property valuePasses
e.style['aspect-ratio'] = "16 auto" should set the property valuePasses
e.style['aspect-ratio'] = "0 / 0" should set the property valuePasses

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