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

[css-grid] Span & faulty line names

From: François REMY <francois.remy.dev@outlook.com>
Date: Mon, 30 Jun 2014 14:33:51 +0200
Message-ID: <DUB130-DS5F7ABE21647E9A4B436D7A5040@phx.gbl>
To: "CSS WG" <www-style@w3.org>
I hereby propose to change the specced behavior in case ((an item is sized 
using a span && span lines are filtered by name) && (no line of that name 
exists)).

Here is the current text:

   span && [ <integer> || <custom-ident> ]#

       Contributes a grid span to the grid item’s placement such
         that the corresponding edge of the grid item’s grid area is
         N lines from its opposite edge.

       If a name is given as a <custom-ident>, only lines with that
         name are counted. (If no line with that name exists, the
         name is ignored. If not enough lines of that name exist, it
         spans to the last such named line in the spanning direction.)

That means "grid-row: span 3 x-track" is considered the same as "grid-row: 
span 3" if no row is named "x-track" (typo). I don't think it makes sense. I 
would prefer to say that it either:
- is equivalent to "span 1"
- is invalid at computation time (and therefore makes the property retuns to 
its initial value of "auto")

Thoughts? 
Received on Monday, 30 June 2014 12:34:10 UTC

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