Re: [css3-background] Describing expansion of 'background' shorthand with commas

On 08/19/2010 06:30 AM, Øyvind Stenhaug wrote:
> This sentence (from 3.10) seems inaccurate:
>
> "Given a valid declaration, the shorthand first sets each of
> ‘background-color’, ‘background-position’, ‘background-size’,
> ‘background-repeat’, ‘background-origin’, ‘background-clip’,
> ‘background-attachment’ and ‘background-image’ to its initial value,
> then assigns explicit values given in the declaration."
>
> Except the enumeration of background-* properties, it's basically a
> copy/paste from level 2 and doesn't consider multiple background layers
> at all. I tried to clarify it a bit, though it gets wordy fast and I'm
> still not quite happy with it (possibly because of a lack of defined
> terms for things that are somewhere in between "component value" and
> "property value"):
>
> Given a valid declaration, the number of background layers equals the
> number of occurrences of <bg-layer> and <final-bg-layer>. For each layer
> the shorthand first sets the corresponding layer of each of
> 'background-position', 'background-size', 'background-repeat',
> 'background-origin', 'background-clip' and 'background-attachment' to
> that property's initial value, then assigns explicit values given for
> this layer in the declaration. Finally 'background-color' is set to its
> initial value and then assigned any explicit value given in the
> declaration.
>
> (Frankly I think example XVIII might be easier to understand, but I
> assume those aren't intended to be normative.)

Fixed. Thanks!

~fantasai

Received on Thursday, 21 October 2010 05:14:19 UTC