Re: [cssom][css3-values] Serialization of initial from shorthand

Quoting "L. David Baron" <dbaron@dbaron.org>:

> I think it should actually *not* be the 'initial' value, given that
> in general the 'initial' value can't be serialized as part of a
> shorthand.  I'd rather stick to the model that:
>  * if there's any 'inherit'/'initial' involved, serialization of a
>    shorthand will fail unless all the subproperties are that same
>    'inherit' or 'initial'
>  * otherwise, the shorthand will attempt to serialize using
>    appropriate rules, and omitting values that can be omitted.
>
> (This is even worse for background layers, since it doesn't make
> sense to make 'initial' be the value for a single layer when there
> are multiple layers, since that layer then *still* couldn't be
> serialized into valid CSS syntax if a different layer had a
> different value.)

That made a lot of sense. I agree.

--
Rune Lillesveen

Received on Monday, 24 June 2013 21:08:35 UTC