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

Re: [css-grid] Grid placement error handling

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 7 Mar 2014 11:18:50 -0800
Message-ID: <CAAWBYDAZ3fcdZL+VCvE+BaRVa9h5q3vEZsqwk57GT7HWqFLjbg@mail.gmail.com>
To: Sergio Villar Senin <svillar@igalia.com>
Cc: www-style list <www-style@w3.org>
On Fri, Mar 7, 2014 at 8:10 AM, Sergio Villar Senin <svillar@igalia.com> wrote:
> In the last ED in EXAMPLE 33 it can be seen:
>
>   grid-column-start: span C; grid-column-end: span C;
>   /* Error: both properties compute to auto */
>
> but a few lines bellow it says:
>
>     If both grid-row-start and grid-row-end, or grid-column-start and
>     grid-column-end, specify a span, the end span is ignored.
>
> So I guess the example needs to be updated (I guess it's just because
> the idea in previous versions was to set both to auto indeed).

Indeed.  Fixed, thanks.

> BTW, although the computed value for the positioning properties is
> clearly specified as "specified value" I wonder what would be the
> computed value for those properties in those error situations. In the
> example above for getComputedStyle(grid-column-end) would it be "span C"
> or "auto" ?

Yes, it used to actually change the computed value in the
error-handling.  We moved away from that because it ended up being
terrible to spec, so now it just refuses to contribute lines or spans
to the position.

~TJ
Received on Friday, 7 March 2014 19:19:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:20 UTC