[csswg-drafts] [css-contain] it should be clearer that size containment inhibits effects of contents on intrinsic sizes (#4741)

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

== [css-contain] it should be clearer that size containment inhibits effects of contents on intrinsic sizes ==
The [definition of size containment](https://drafts.csswg.org/css-contain/#containment-size) says:

> 1. When calculating the size of the containing box, it must be treated as having no contents.

I think the implication here (given the text about replaced elements following this) is that "calculating the size of the containing box" includes both:
* finding the resolved values of `width` and `height`
* computing [intrinsic sizes](https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes)

However, I think a literal reading of the sentence implies that it means only the first and not the second.  I think it should be clearer that the computation of the intrinsic sizes of the box must also be done as though the box has no contents.  It's possible it might also be worth mentioning [automatic sizes](https://drafts.csswg.org/css-sizing-3/#automatic-size).

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

Received on Tuesday, 4 February 2020 20:01:41 UTC