[csswg-drafts] [css-grid] Definition of fit-content() uses min()/max() wrong (#4789)

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

== [css-grid] Definition of fit-content() uses min()/max() wrong ==
In <https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-fit-content>, the formula is stated as:

```
min(minimum, max(limit, max-content))
```

This is *not* how you clamp a value between a min and max; instead, it ensures that the result is *outside* of the min-max range. Need to swap the use of min() and max() there, or switch to a clamp() notation now that that's well-defined.

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

Received on Tuesday, 18 February 2020 19:42:53 UTC