[Webkit-unassigned] [Bug 221450] Image element as flex item with 100% width is not compressible

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 7 21:47:33 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=221450

--- Comment #5 from Karl Dubost <karlcow at apple.com> ---
This is the comment on the bugzilla bug


> This is expected result of Mozilla 1585485 [3], which implements [1]. The percentage width: 100% on the image flex item (which is compressible [2]) makes the min-width:auto resolved against 0. The item also has flex-grow:0 preventing it from being stretched, so the final resolved width is the flex-basis:20%, which is 80px.
> 
> I add another testcase that has <input> added as an flex item. Both <input> and the image should have the same width.
> 
> [1] https://drafts.csswg.org/css-sizing-3/#replaced-percentage-min-contribution
> [2] https://drafts.csswg.org/css-sizing-3/#min-content-zero
> [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1585485

-- 
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/20240708/3723f1ad/attachment.htm>


More information about the webkit-unassigned mailing list