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

The Working Group just discussed `Does indefinite min-height: N% fall back to zero or auto?`, and agreed to the following resolutions:

* `RESOLVED: treat indefinite percentages in min-width and min-height as 0`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: Does indefinite min-height: N% fall back to zero or auto?<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/2384<br>
&lt;dael> TabAtkins: This is for min-width and height. Do they fallback to auto or 0? General rule is we fall back to initial value. Is that 0 or auto? Initial used to be 0, changed to auto.<br>
&lt;dael> TabAtkins: 2.1 explicitly says they're treated as 0, but it was prob on the assumption 0 was the initial value.<br>
&lt;dael> TabAtkins: Only real case is you have a flex item and you can't resolve the min-height should it be auto or 0?<br>
&lt;dael> TabAtkins: I'm of the opinion it hsould be auto.<br>
&lt;dael> Rossen: Current?<br>
&lt;dael> TabAtkins: 0 which was previous initial value.<br>
&lt;dael> TabAtkins: Change to be consistent with the change to initial.<br>
&lt;dael> fantasai: I'm trying to wrap my head around when this would be different.<br>
&lt;dael> astearns: Last time we discussed 0% when we said it should be 0 it's different on width then min-width.<br>
&lt;dael> fantasai: auto for width isn't hte same as min-width.<br>
&lt;dael> astearns: We could throw out the calc on min-width if it's doesn't resolve.<br>
&lt;dael> TabAtkins: either the percent 0s out or we throw it out.<br>
&lt;dael> fantasai: Makes more sense.<br>
&lt;dael> tantek: Treat min-width and min-height the same as we just resolved to deal with percentages.<br>
&lt;dael> astearns: So it's 0 rather then auto.<br>
&lt;dael> TabAtkins: Still a change from current. calc is replaced with 0. Current is calc(10%+10px) = 0. Now it's =10px.<br>
&lt;dael> fantasai: This makes the most sense. Consistent with margins and padding.<br>
&lt;dael> fantasai: If you set min-width to a non-auto size you're not expecting it to look at content<br>
&lt;dael> astearns: Prop: treat indefinete % in min-width and min-height as 0<br>
&lt;dael> RESOLVED: treat indefinite percentages in min-width and min-height as 0<br>
&lt;dael> Rossen: This is web compat?<br>
&lt;dael> TabAtkins: If you have a complex calc it's a change. percent only is the same.<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2384#issuecomment-380103690 using your GitHub account

Received on Tuesday, 10 April 2018 13:45:56 UTC