Re: [csswg-drafts] [css-flexbox-1] Inconsistent sizing of replaced elements in flex containers (#12012)

> So height: 100% on the image computes to auto

No, it behaves as auto but doesn't compute to auto (on an element with children you could confirm this using inheritance). CSS2 used the same term for both behaviors, this terminology is now obsolete.

See https://github.com/w3c/csswg-drafts/issues/4525

> Both items have by default have flex factor of 0 (flex-grow)

You already quoted the spec that says you need to use the flex shrink factor here, which is not zero.

> why doesn’t Firefox reduce the image proportionally, stopping at its intrinsic width, like Chrome does?

The difference is because of the automatic minimum size. I would need to check who is right, but probably Blink, since in Servo we have the same behavior and we tried to follow the spec closely.


-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12012#issuecomment-2759128850 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 27 March 2025 19:02:29 UTC