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

Re: [css3-background] "Margins are always transparent" missing

From: Simon Sapin <simon.sapin@exyr.org>
Date: Wed, 10 Apr 2013 22:14:18 +0200
Message-ID: <5165C81A.8090606@exyr.org>
To: www-style@w3.org
Le 10/04/2013 21:40, "Gérard Talbot" a écrit :
> I still do not see where this is explicitly stated. As presented,
> background-clip defines (can set) the background painting area; but
> nowhere does it say that background (background color and background
> image) - by definition - of an element is never painted into its own
> margin area.

I don’t see what’s missing here. By definition, each background layer is 
painted in its background painting area, as defined by the 
background-clip property, and not outside of it.

Each of the values accepted by background-clip − border-box, 
padding-box, content-box − defines an area, none of which has any 
intersection with the margins.

Since there is no 'margin-box' value for background-clip, it seems very 
obvious to me that backgrounds are never painted in the margins.

-- 
Simon Sapin
Received on Wednesday, 10 April 2013 20:14:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 April 2013 20:14:44 UTC