W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2016

[csswg-drafts] [css-grid] when to apply the clamping for fit-content() tracks?

From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Tue, 21 Jun 2016 19:32:53 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-161520538-1466537572-sysbot+gh@w3.org>
MatsPalmgren has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-grid] when to apply the clamping for fit-content() tracks? ==
The specification of fit-content() track sizes is rather vague:
https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-fit-content

My understanding is that a "fit-content(X)" track size should behave 
as
"minmax('auto', 'max-content'))" while running the "Resolve Intrinsic 
Track
Sizes" algorithm:  https://drafts.csswg.org/css-grid/#algo-content
with the additional tweak that if the track's base size becomes larger
than X then it is clamped to X.

Is that correct?

If yes, then I have more questions:
1. should the clamping be applied at every step of the algorithm, or 
only
after the algorithm is done (i.e. between 12.5 and 12.6)?
2. should the "growth limit" be clamped at any point while running
the algorithm?  (I'm guessing not, since "12.6 Maximize Tracks" says 
to
clamp it there, but the spec could be clearer on this)
https://drafts.csswg.org/css-grid/#algo-grow-tracks

Thanks,
Mats


Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/209 using your GitHub 
account
Received on Tuesday, 21 June 2016 19:32:55 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:20 UTC