[csswg-drafts] [css-grid] fit-content() definition not clear (#3569)

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

== [css-grid] fit-content() definition not clear ==
From https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-fit-content,

> - `fit-content( <length-percentage> )`
>    Represents the formula `min(max-content, max(auto, argument))`, which is calculated like `minmax(auto, max-content)`, except that the track size is clamped at `argument` if it is greater than the `auto` minimum.

This definition seems very confusing to me. For starters, `auto` has different meaning as a minumim than as a maximum, so it's not clear how `min(max-content, max(auto, argument))` should be calculated.

In "the track size is clamped at `argument`", it's not clear whether this is a flooring or a ceiling. Usually "clamp" refers to an interval, not a single value.

In "if it is greater" it's not clear whether "it" refers to `argument` or to the track size.

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

Received on Tuesday, 29 January 2019 23:27:13 UTC