Bug 238704

Summary: CSS min-aspect-ratio does not take decimals / fractions
Product: WebKit Reporter: Jay C <jay>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: karlcow, koivisto, mrobinson, rbuis, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: GoodFirstBug, InRadar
Version: Safari 15   
Hardware: Mac (Apple Silicon)   
OS: All   

Jay C
Reported 2022-04-02 13:10:38 PDT
I am trying to style something with an aspect-ratio media query. I can use whole numbers like 16/9, 1/1, 3/1 but I cannot use decimals @media (min-aspect-ratio: 1.5/1) {} // doesn't work in Safari 15 or Technology Preview @media (min-aspect-ratio: 2/1) {} // works @media (min-aspect-ratio: 1.5/1) {} // works in Firefox
Attachments
Radar WebKit Bug Importer
Comment 1 2022-04-09 13:11:16 PDT
Karl Dubost
Comment 2 2023-09-04 22:39:46 PDT
I believe this is working as expected now.
Note You need to log in before you can comment on or make changes to this bug.