W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: [css3-page][css3-background] Canvas background painting and positioning area

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 06 Mar 2012 16:44:55 -0800
Message-ID: <4F56AF87.9060306@inkedblade.net>
To: Simon Sapin <simon.sapin@kozea.fr>, MURAKAMI Shinyu <murakami@antenna.co.jp>, Michael Day <mikeday@yeslogic.com>
CC: "www-style@w3.org" <www-style@w3.org>
On 01/26/2012 08:17 AM, Simon Sapin wrote:
> Hi,
>
> Section 3.11 of css3-background says
>
>> The background of the root element becomes the background of the
>> canvas and its background painting area extends to cover the entire
>> canvas
>
> But where exactly is the canvas in Paged Media?
>
> In css3-page, section 7 defined precisely where the @page background is
> drawn and how it is positioned. It could be updated to the Background 3 terminology (painting area, positioning area) but it
> is not ambiguous is it stand.
>
>> The page background covers the entire page box, including the page
>> margins. Background images are positioned as for any other box, by
>> default anchored within the page area (i.e. the page box's content
>> box); however if ‘background-attachment’ is ‘fixed’ then the image is
>> positioned relative to the page box including its margins.

Hmm, probably that should say "padding" instead of "margins" there...

> Section 4.2 talks about the root element and the canvas, but is more ambiguous:
>
>> The root element then paints the canvas and the document contents
>> within the page padding box.
>
> I think this implies that the background painting area is the page padding box, but it should be more explicit. As above,
> consider using the Background 3 terminology.

Seems like a good suggestion. Filed as ISSUE-226
   https://www.w3.org/Style/CSS/Tracker/issues/226

Note: Background 3 terminology didn't exist when this was written. ;)

> (Note: why not the border edge instead, as on "normal" boxes?)

Good question. I don't know. If Antenna House and Prince agree, I'm
happy to change it to whatever you three prefer. :)

~fantasai
Received on Wednesday, 7 March 2012 00:45:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:51 GMT