W3C home > Mailing lists > Public > www-style@w3.org > February 2014

Re: [css3-background] background-clip value that applies for the background color property

From: Simon Sapin <simon.sapin@exyr.org>
Date: Mon, 17 Feb 2014 14:32:59 +0000
Message-ID: <53021D9B.9010601@exyr.org>
To: www-style@w3.org
On 17/02/2014 13:59, Stewart Brodie wrote:
> Section 3.2, "Base Color: the background-color property" says at the end:
>    "The background color is clipped according to the background-clip’value
>     associated with the bottom-most background image."
> Does it really mean that or should it say the "bottom-most image layer"? The
> rest of the text appears to always be careful to say "image layer" when it
> means that, but this one is different.
> i.e. what background-clip value applies to the background-color here:
>    background-color: black;
>    background-clip: border-box, content-box, padding-box;
>    background-image: url(example-1.png), none
> The current text implies that it should be border-box.  I think it is trying
> to say that it should be content-box.
> Which is correct?

It’s content-box. This is consistent with how the syntax of the 
'background' shorthand only accepts a color in <final-bg-layer>.

Are you interpreting a 'none' value in 'background-image' as an "layer" 
but not as an "image"? I don’t think that difference is intended.

Simon Sapin
Received on Monday, 17 February 2014 14:33:28 UTC

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