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

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

From: <rune@opera.com>
Date: Mon, 24 Jun 2013 21:08:00 +0000
Message-ID: <20130624210800.3gmhw4cu0dsss8s8@staff.opera.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: Glenn Adams <glenn@skynav.com>, www-style list <www-style@w3.org>
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

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