WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 304915
259812
min/max expressions are ignored in sizes attribute
https://bugs.webkit.org/show_bug.cgi?id=259812
Summary
min/max expressions are ignored in sizes attribute
mic.gallego
Reported
2023-08-03 18:57:57 PDT
Hi, "min" or "max" expressions are completely ignored by sizes in Safari, while they are properly honored in both Chrome and Firefox. We had a few min() based calculation, which caused Safari desktop to only pickup the biggest size. You can find a minimal reproduction case here:
https://codepen.io/bakura10/pen/PodgbzN
Chrome and Firefox both show the low-resolution image due to the min clause, while Safari ignores it and uses the bigger image. Thanks!
Attachments
Reference Screenshot - WebKit ToT
(268.51 KB, image/png)
2026-01-09 01:11 PST
,
Ahmad Saleem
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2023-08-04 04:35:32 PDT
I am able to reproduce using attached test case on STP175 where Safari show '1000*400' while both Chrome Canary 117 and Firefox Nightly 118 show 200*100.
Radar WebKit Bug Importer
Comment 2
2023-08-10 18:58:12 PDT
<
rdar://problem/113726495
>
Ahmad Saleem
Comment 3
2026-01-08 21:14:29 PST
Fixed with
https://commits.webkit.org/305226@main
and yet to land but will fix other WPT as well -
https://github.com/WebKit/WebKit/pull/56207
*** This bug has been marked as a duplicate of
bug 304915
***
Ahmad Saleem
Comment 4
2026-01-09 01:11:46 PST
Created
attachment 477949
[details]
Reference Screenshot - WebKit ToT
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