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

On Mon, Jun 24, 2013 at 10:00 AM, Tab Atkins Jr. <>wrote:

> On Mon, Jun 24, 2013 at 7:14 AM, Glenn Adams <> wrote:
> > In the first case, I would expect "center" returned, and in the second, I
> > would expect "initial" returned: because these are specified values.
> Is that specified?  If so, then "initial" shouldn't be returned, as it
> disappears by specified-value time.

Sorry, but I was using "specified" in the general sense, as in exactly what
was specified explicitly, and not what CSS refers to as as "specified
values" in the CSS Cascade [1].

Unfortunately [1] invents something for "specified" which doesn't mean
specified. I've often thought this a mistake, and an endless source of

Of particular relevance here is the following NOTE in DOM-2 Style [2]:

*Note:* The CSS Object Model doesn't provide an access to the
 or *actual*<>
of the CSS cascade.

So, except for getComputedStyle(...).propertyName, which returns the
computed value, what is returned by should be
exactly what was specified in the style attribute, and not the CSS Cascade
notion of "specified value".


Received on Monday, 24 June 2013 18:44:51 UTC