W3C home > Mailing lists > Public > www-style@w3.org > March 2014

[css-grid] Layout algo question - why keep an infinity around in the fourth phase?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 18 Mar 2014 17:14:15 -0700
Message-ID: <CAAWBYDCDBjV+ik-aHXZ-jwB4oiwo6bdPFqAcwM34SvNDm6JmRg@mail.gmail.com>
To: www-style list <www-style@w3.org>
The Grid layout "figure out how wide min-content and max-content
tracks are" step is repeated once for each set of items with a given
span, and in each iteration, goes through 4 phases.

The first time a track goes through the 3rd phase, if its "max" was
infinite (caused by a max-content size), it gets corrected to a finite
value.  However, the layout algorithm currently states that in the 4th
phase of the same iteration, it has to be treated as if it was still
infinite.

Why does this occur?  It's the sole reason for one of the variables in
the original algorithm, and it's a weird wart in the translated
algorithm.  Just giving an example that is solved by this would be
sufficient; we want to make sure this isn't an accidental weird detail
of the MS code leaking into the algorithm.

~TJ
Received on Wednesday, 19 March 2014 00:15:02 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:20 UTC