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

[css-grid] Undefined named lines placement

From: Manuel Rego Casasnovas <rego@igalia.com>
Date: Tue, 16 Dec 2014 16:55:54 +0100
Message-ID: <5490560A.90509@igalia.com>
To: www-style@w3.org

I'm reading the line-based placement properties [1] and I'd like to
confirm the behavior with undefined named lines.

Let's imagine that we define grid-template-columns like:
  grid-template-columns: (left) 100px (right);

Are the following assumptions correct?

1) grid-column: right;
   This is the regular case, and the item will be placed in the 2nd column.
   According to the spec this should be the same than
"grid-column: 1 right;".

2) grid-column: foo;
   As "foo" is not a named line, all lines in the implicit grid are
assumed to have that name.
   We would consider that grid-template-columns is:
(left) 100px (right foo);
   So, this will be placed again in the 2nd column (if we think that
"right" is the first line of the implicit grid).

   If I understand it right, even if we have both 1) and 2) at the same
time, both items should be placed in the 2nd column.

3) grid-column: 3 bar;
   If 2) was right (and "right" is the first line of the implicit grid)
it'll be placed in the 4th column.

Thank you very much,

[1] http://dev.w3.org/csswg/css-grid/#line-placement
Received on Tuesday, 16 December 2014 15:56:44 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:46 UTC