Bug 259812
| Summary: | min/max expressions are ignored in sizes attribute | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | mic.gallego |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ahmad.saleem792, karlcow, koivisto, ntim, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar |
| Version: | Safari 16 | ||
| Hardware: | All | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=184027 | ||
mic.gallego
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
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
<rdar://problem/113726495>