[Webkit-unassigned] [Bug 234148] New: Incorrect aspect ratio size
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 10 07:14:59 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=234148
Bug ID: 234148
Summary: Incorrect aspect ratio size
Product: WebKit
Version: Safari Technology Preview
Hardware: Mac (Intel)
OS: macOS 10.15
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: adam.seckel at gmail.com
In latest Safari 15, as well as Safari Technology Preview, combining aspect-ratio and width does not result in the correct element height.
An element with width: 352px and an aspect-ratio: 352 / 490 should result in a height of 490px (Latest Chrome and Firefox). In Safari however, it results in ~500.xx px
AN older version of Chrome (91.0.4472.164) also resulted in 500, but this has now been fixed by 96.0.4664.93 (not entirely clear which version fixed it.
Please see the reproduction attached in the code sandbox below.
https://codesandbox.io/s/aspect-ratio-calculation-d866x?file=/src/index.js
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211210/70d43ce4/attachment-0001.htm>
More information about the webkit-unassigned
mailing list