Re: [css-grid] Grid placement error handling

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