Re: [css-grid] Grid placement error handling

En 07/03/14 20:18, Tab Atkins Jr. escribiu:

>> 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.

Cool, thanks for the clarification.

Related to that, what about the computed value of <grid-line> in the
grid placement properties? I mean, the specs mention how to resolve for
example a lone <custom-ident>, it might be an implicit grid line created
from a grid area, an explicit grid line or even resolved to "auto". My
question is basically the same, should we use that "resolved" position
as the return value of getComputedStyle() or shall we just use the plain
specified value?

(similar things happen to <integer> && <custom-ident>? for example)

Just in case I haven't explained myself properly, let's assume the
following declarations

grid-template-areas: "a a .";
grid-column: a;

If we use the specified value then we'd get "a / a" for grid-column. But
if we use the "resolved" value then we'd get something like "a-start /
a-end". Not sure which is the right one, if any ;)

BR

Received on Friday, 7 March 2014 19:38:32 UTC