During the second pass we're not doing content alignment,
so if the size of the columns/rows change due to the second pass
they won't be properly aligned.
Check the attached example, the item should be horizontally centered
but it's not.
The spec is very clear about this (https://drafts.csswg.org/css-grid/#algo-overview).
In steps 3 and 4 it says that we should apply content alignment,
just like in steps 1 and 2.
Just following what the spec says fixes the problem.
|
Deleted:
css-grid-content-alignment-second-pass.html
306 bytes
|
|
css-grid-content-alignment-second-pass.html
306 bytes
View
Download
|
|
Deleted:
css-grid-content-alignment-second-pass-current.png
4.0 KB
|
|
css-grid-content-alignment-second-pass-current.png
4.0 KB
View
Download
|
|
|
Deleted:
css-grid-content-alignment-second-pass-expected.png
3.0 KB
|
|
css-grid-content-alignment-second-pass-expected.png
3.0 KB
View
Download
|
|
Comment 1 by bugdroid1@chromium.org
, Aug 6