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

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 UTC