Re: [csswg-drafts] [css-grid-2] Allow minmax where max wins over min

How about adding a new parameter? Just like `minmax(min-value, max-value, more-prior-item)`
The third param `more-prior-item` specifies which one has the priority.

eg. `minmax(20%, 250px, 'min')` is equal to `minmax(20%, 250px)`
eg. `minmax(20%, 250px, 'max')` makes max wins over min, which could solve the maxwidth situation.

---

> Otherwise I'll have to make do with using a pixel minimum,
> which will means my fr margins will take up no space at smaller viewports,
> so i'll have to add tedious media queries.

I think, no space at smaller viewports, it's an independent situation from `minmax()`.
Maybe it should be solved by grid layout, adding rules to limit the minwidth of the remaining space or something like that?

-- 
GitHub Notification of comment by anjia
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1102#issuecomment-389429769 using your GitHub account

Received on Wednesday, 16 May 2018 07:58:04 UTC