Re: [csswg-drafts] [css-grid-2] Allow fr units as min

The Working Group just discussed `Allow fr units as min`, and agreed to the following:

* `RESOLVED: Add fr unit support inside minmax for Grid L2.`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic:  Allow fr units as min<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/2611<br>
&lt;dael> fantasai: Based on rachelandrew I say we allow length or % but not content based keywords<br>
&lt;fantasai> https://github.com/w3c/csswg-drafts/issues/2611#issuecomment-386469857<br>
&lt;dael> fantasai: We limited what you can put in min position of minmax in L1 because the requests came late. One of the use cases was I want fr with a cap of 250px<br>
&lt;dael> fantasai: We wanted that tow ork. Figured out it's straight forward if there's not content based keywords<br>
&lt;dael> fantasai: Open questions are do we want to, I think yes. 2) allow % in max position and I think we should. 3) Should we allow content based kewords in max position- no clear use case and complex to impl so I think start with no<br>
&lt;dael> fantasai: 4) Do we want to allow a 3 argument minmax where you have some kind of explicit min like a content keyword or a length and then an fr unit in the middle and a max in the top<br>
&lt;dael> Rossen: Let's go separate. fr unit as a part of minmax first and see if we can resolve. Then 3 value<br>
&lt;dael> Rossen: Are there additional comments or ideas about support of fr units?<br>
&lt;dael> Rossen: proposed addition of fr unit support inside minmax for Grid L2. Objections?<br>
&lt;dael> RESOLVED: Add fr unit support inside minmax for Grid L2.<br>
&lt;fantasai> s/inside/as min arg inside/<br>
&lt;fantasai> minmax(1fr, 250px) is accepted<br>
&lt;dael> Rossen: Secondary issue is should we allow an additional 3rd functional value in the middle of min and max used for flexing and how that behaves<br>
&lt;fantasai> question is now minmax(5em, 2fr, 250px)<br>
&lt;dael> Rossen: Additional comments?<br>
&lt;dael> Rossen: What's the primary use case for 3 value?<br>
&lt;dael> fantasai: Right now you can control min or max of fr unit, column has to be at least this, but I want 1 fr. Or you can say 1fr but cap. You can't do both. You might want a 0 minimum and you want 1fr and a cap of 250px<br>
&lt;dael> Rossen: Basically you want...I see an example...min 1em, max 250px, and then 2fr in this casewill...<br>
&lt;dael> fantasai: We can come back to this.<br>
&lt;dael> Rossen: Yeeeeeaaah...I'm not sure.<br>
&lt;dael> Rossen: Why isn't that covered by min width?<br>
&lt;dael> fantasai: In a sense it is. You can't do min width on column<br>
&lt;dael> Rossen: Ah this is for columns<br>
&lt;dael> fantasai: Yeah, since fr have implicit auto minimum if you set min width on any items we'll use that. So you can kind of get there<br>
&lt;dael> rachelandrew: I've had people ask for this. THat's the advice I gave is put something on item<br>
&lt;dael> Rossen: It's achievable using items as a spacer and fr as the min<br>
&lt;dael> Rossen: I'd be happy to come back. I want to think a bit more on this.<br>
&lt;dael> Rossen: If others are ready?<br>
&lt;dael> [silence]<br>
&lt;dael> Rossen: Should we come back to this?<br>
&lt;dael> fantasai: We'll close this and consider the 3 value syntax in the future.<br>
</details>


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

Received on Wednesday, 23 May 2018 16:13:19 UTC