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   

Description Jay C 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
Comment 1 Radar WebKit Bug Importer 2022-04-09 13:11:16 PDT
<rdar://problem/91525562>
Comment 2 Karl Dubost 2023-09-04 22:39:46 PDT
I believe this is working as expected now.