W3C home > Mailing lists > Public > www-style@w3.org > January 2011

Re: Expected behavior of background-clip property on the html element?

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 12 Jan 2011 07:46:24 -0800
Cc: Alan Gresley <alan@css-class.com>, www-style list <www-style@w3.org>
Message-Id: <2C86A6CA-D8FD-419B-9C4B-3A1737AB653F@gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>

On Jan 11, 2011, at 11:20 PM, fantasai wrote:

> On 01/11/2011 11:03 PM, Alan Gresley wrote:
>> On 12/01/2011 5:13 PM, fantasai wrote:
>>> The spec says:
>>> http://www.w3.org/TR/css3-background/#background-clip
>>> # background-clip ... determines the <dfn>background painting area</dfn>.
>>> # ...
>>> # Note that the root element has a different background painting area.
>>> # See “The backgrounds of special elements.”
>>> http://www.w3.org/TR/css3-background/#special-backgrounds
>>> # The background of the root element becomes the background of the canvas
>>> # and its <em>background painting area</em> extends to cover the entire
>>> # canvas
>>> Exactly what is not clear?
>> Interesting how this is implemented. I ask you what browser handles this correct?
> Given the above-quoted spec text, the entire canvas, aside from the blue dots
> of the html border and the white background of the body box which is just
> high enough to contain the word "test", should be gray.

Right (aside from the body being lime now). The spec seems pretty clear, when one follows the logic of it, that the BPA of the root element (i.e. the HTML element) is the entire canvas, and is not, therefore, based on the 'background-clip' property (which does not have "canvas" as one of its values). 

My recent nightly download fails the test. It is clipping the background to the content box of the root/viewport. It also fails to meet the definition of 'border-style: dotted', by the way, which says there should be a series of _round_ dots.
Received on Wednesday, 12 January 2011 15:50:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:54 UTC