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

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