WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
290024
Adding max-width and max-height:100% breaks aspect-ratio
https://bugs.webkit.org/show_bug.cgi?id=290024
Summary
Adding max-width and max-height:100% breaks aspect-ratio
ash
Reported
2025-03-18 20:42:44 PDT
Created
attachment 474623
[details]
minimal reproduction While attempting to constrain an aspect-ratio div inside another relative div, I set max-width:100% and max-height:100%. Expected: In other browsers this doesn't allow the ratio box to get larger than the container. Actual: In Safari the aspect ratio is not preserved Example:
https://codepen.io/AshKyd/pen/jEOzbbj
Attachments
minimal reproduction
(710 bytes, text/html)
2025-03-18 20:42 PDT
,
ash
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-03-25 20:43:12 PDT
<
rdar://problem/147897043
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug