[csswg-drafts] [css-sizing] min/max-content contribution is an outer size, not an inner one (#10985)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-sizing] min/max-content contribution is an outer size, not an inner one ==
https://drafts.csswg.org/css-sizing-3/#contributions

> - max-content contribution
>     The size that a box contributes to its [containing block](https://drafts.csswg.org/css-display-4/#containing-block)’s [max-content size](https://drafts.csswg.org/css-sizing-3/#max-content). 
> - min-content contribution
>     The size that a box contributes to its [containing block](https://drafts.csswg.org/css-display-4/#containing-block)’s [min-content size](https://drafts.csswg.org/css-sizing-3/#min-content).

And of course the padding/border/margin contribute to the min/max-content size of the containing block, so we need to take them into account.

So this seems wrong: https://drafts.csswg.org/css-sizing-3/#intrinsic-contribution

> A box’s [min-content contribution](https://drafts.csswg.org/css-sizing-3/#min-content-contribution)/[max-content contribution](https://drafts.csswg.org/css-sizing-3/#max-content-contribution) in each axis is the size of the **content box** of a hypothetical [auto](https://drafts.csswg.org/css-sizing-3/#valdef-width-auto)-sized float that contains only that box, if that hypothetical float’s containing block is zero-sized/infinitely-sized.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10985 using your GitHub account


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

Received on Tuesday, 1 October 2024 17:01:38 UTC