Bug 238704
| Summary: | CSS min-aspect-ratio does not take decimals / fractions | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jay C <jay> |
| Component: | CSS | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/91525562>
Karl Dubost
I believe this is working as expected now.