Bug 238704 - CSS min-aspect-ratio does not take decimals / fractions
Summary: CSS min-aspect-ratio does not take decimals / fractions
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 15
Hardware: Mac (Apple Silicon) All
: P2 Normal
Assignee: Nobody
URL:
Keywords: GoodFirstBug, InRadar
Depends on:
Blocks:
 
Reported: 2022-04-02 13:10 PDT by Jay C
Modified: 2023-09-04 22:39 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.