W3C home > Mailing lists > Public > www-style@w3.org > October 2010

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 20 Oct 2010 20:40:17 -0700
Message-ID: <4CBFB621.8050908@inkedblade.net>
To: Øyvind Stenhaug <oyvinds@opera.com>
CC: "www-style@w3.org" <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:33 GMT