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

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

From: Gérard Talbot <www-style@gtalbot.org>
Date: Wed, 10 Apr 2013 16:48:17 -0400
Message-ID: <5ba8fee7ca9d2690cbfdd06061351916.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Simon Sapin" <simon.sapin@exyr.org>
Cc: "W3C www-style mailing list" <www-style@w3.org>

Le Mer 10 avril 2013 16:14, Simon Sapin a écrit :
> 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.


What's missing is the definition of where background (color and image) are
painted by definition and by default, where background painting starts by
definition, regardless of background-clip computed value and regardless of
background-clip definition.

> 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.

Implicitly, you may/should reach such conclusion/deduction. But it is not
This was more explicit in CSS 2.1.
It is not explicit in CSS 3 Backgrounds and Borders.
It is not explicit in CSS 3 Box model.

parent box's background will shine through by default because of the
initial 'transparent' value on 'background-color'.
CSS 2.1, section 14.2 The background

But even such statement does not fully and completely state everything.
The parent box's drawing colors (foreground) may shine through or may be
perceivable in the margin area of its child(ren).

One additional idea: use (with permission) or add a link to this image by
Jon Hicks
and/or even use (with permission) or add a link to this Flash by Douglas
into related CSS 3 specs.

CSS 2.1 Test suite RC6, March 23rd 2011

Contributions to CSS 2.1 test suite

Web authors' contributions to CSS 2.1 test suite
Received on Wednesday, 10 April 2013 20:48:55 UTC

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