W3C home > Mailing lists > Public > www-style@w3.org > April 2015

Re: [css-grid] Clarifying "all lines in the implicit grid" text (which probably wants to exclude explicit grid)

From: Manuel Rego Casasnovas <rego@igalia.com>
Date: Mon, 27 Apr 2015 07:54:21 +0200
Message-ID: <553DCF0D.7020209@igalia.com>
To: Daniel Holbert <dholbert@mozilla.com>, www-style list <www-style@w3.org>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, mats@mozilla.com
On 25/04/15 00:50, Daniel Holbert wrote:
>  (3) Note that the area you're describing -- the area outside of the
> explicit grid -- could be L-shaped.  A term like "implicit grid" seems
> like a weird name for an L-shaped area, since "grid" implies something
> rectangular, to me at least.

Just a clarification, it's not only L-shaped, but if I'm not wrong it
might be a square around the explicit grid.

For example in a 2x2 grid:
  grid-template-columns: 100px 100px;
  grid-template-rows: 50px 50px;

If you place an item with ([1] & [2]):
  grid-column: -1 foo / span bar;
  grid-row: -1 foo / span bar;

You'll end up having a 4x4 grid, with the explicit grid (E) "wrapped" by
the implicit grid (I):

  I I I I
  I E E I
  I E E I
  I I I I


[1] http://dev.w3.org/csswg/css-grid/#line-placement
[2] https://lists.w3.org/Archives/Public/www-style/2014Dec/0337.html
Received on Monday, 27 April 2015 05:54:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC