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

Re: [css-grid] Undefined named lines placement

From: Manuel Rego Casasnovas <rego@igalia.com>
Date: Fri, 19 Dec 2014 11:53:59 +0100
Message-ID: <549403C7.1020305@igalia.com>
To: www-style list <www-style@w3.org>

On 16/12/14 20:22, Tab Atkins Jr. wrote:
> On Tue, Dec 16, 2014 at 7:55 AM, Manuel Rego Casasnovas <rego@igalia.com> wrote:
>> Hi,
>> 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);
>> [...]
>> 2) grid-column: foo;
>> [...]
> No, (right) is the last line in the explicit grid.  The *next* line
> will be part of the implicit grid, and will be treated as having the
> name "foo", so the item will go in the third column.

Ok, I think it makes more sense. As the explicit grid has 2 lines: left
and right.

Thinking in an example with negative numbers:
  grid-column: -1 foo / span bar;

Here grid-template-columns would be something like:
  (foo) auto (left) 100px (right) auto (bar)

So the item will take 3 columns, and the implicit grid will be before
and after the explicit grid.

I hope I'm getting it right this time.

Received on Friday, 19 December 2014 10:55:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:49 UTC