[csswg-drafts] [css-sizing-3] Does indefinite min-width: N% fall back to zero or auto?

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

== [css-sizing-3] Does indefinite min-width: N% fall back to zero or auto? ==
In https://github.com/w3c/csswg-drafts/issues/2248#issuecomment-363642657 @MatsPalmgren wrote:

I was just updating some code dealing with min-width:auto and I'm wondering if min-width:N%with an indefinite percentage basis counts as auto in this context? In particular, does Automatic Minimum Size apply? https://drafts.csswg.org/css-grid/#min-size-auto

<hr>

In https://github.com/w3c/csswg-drafts/issues/2248#issuecomment-363650437 @dholbert wrote:

I tend to think that it should apply, though I don't think any spec text says that it would.  And really, CSS2 has text saying that for `min-height` (which in CSS2 was the only one of the `min-{size}` properties that could have an indefinite basis), it falls back to '0':
> The percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as '0'

https://www.w3.org/TR/CSS22/visudet.html#propdef-min-height

I suspect "treated as '0'" there was really meant to signify "treated as the initial value".  And so now, under that interpretation, this scenario should now fall back to `auto`-which-then-usually-gets-treated-as-`0`...  This might want its own spec issue, though.

<hr>

Thus, its own spec issue.

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

Received on Sunday, 4 March 2018 11:21:56 UTC