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

fantasai <fantasai.lists@inkedblade.net> wrote on 2012/06/12 5:06:14
> How about we change the spec to say:
> 
>    0. Page Background
>    1. Document Canvas
>    2. Page Border
>    3. Document Content
>    4. Margin Boxes
> 
> The document canvas would effectively be the "background" of the page
> box, painting at the same layer with respect to the page border as a
> normal box's background to its border. Layers 1, 2, & 3 would form a
> stacking context; the margin boxes can be positioned above or below
> them, but not interleaved between.
> 
> Once we have that layering in place, we can allow the canvas to paint
> underneath the border. And allow this to be controlled with background-clip.

I am OK with this change.
I checked our implementation, Antenna House Formatter, and found that
we already have this painting order :)

> (The open question is then, is it controlled by 'background-clip' on the
> root element or on the @page context?)

I think it should be on the root element because the canvas background
is specified on the root element.

-- 
MURAKAMI Shinyu
http://twitter.com/MurakamiShinyu
Antenna House Formatter:
http://www.antennahouse.com

Received on Tuesday, 19 June 2012 11:00:55 UTC