Description[css-grid] Fix placement for unknown named grid lines
The spec has changed and now all the implicit lines should be considered
when we're resolving named grid lines with an unknown name.
The relevant part of the spec is
(http://dev.w3.org/csswg/css-grid/#line-placement):
"If a name is given as a <custom-ident>, only lines with that name
are counted. If not enough lines with that name exist,
all implicit grid lines are assumed to have that name
for the purpose of finding this position."
Modified the code to resolve named grid lines in GridResolvedPosition.
We need to keep the old behavior of considering "auto" unknown named
grid lines for the case of positioned grid items.
Updated current tests to the new expected behavior and created a new
test checking different cases explicitly.
BUG=442954
TEST=fast/css-grid-layout/grid-item-unknown-named-grid-line-resolution.html
Committed: https://crrev.com/4a86c9a04f09c3a0cbf741feb535a2680c1faa79
Cr-Commit-Position: refs/heads/master@{#371792}
Patch Set 1 #Patch Set 2 : New version after spec changes #
Total comments: 12
Patch Set 3 : Applying suggested changes #Patch Set 4 : Small changes #Patch Set 5 : New version with simplified loop #
Total comments: 10
Patch Set 6 : Fixing last review comments #Messages
Total messages: 17 (5 generated)
|