On Sep 3, 2010, at 12:08 AM, Thierry Koblentz wrote:

>> No, not really. The spec is about both.
>> Unless the root element has a background, the background is propagated
>> to the viewport. If no background-repeat is specified, the image will
>> then be painted all over the space/canvas. If background-repeat is
>> specified (no-repeat), the space created by <body> (it's computed
>> height) will be used for background-position - the root element is not
>> taller than the body element, unless a height on the root element is
>> specified.
>> 
>> see 4th paragraph under 'The background':
>> http://www.w3.org/TR/CSS21/colors.html#background
> 
> This part below makes a lot of sense regarding how browsers paint a
> positioned background when there is no background for <html>.  
> 
>> If background-repeat is specified (no-repeat), the space created by <body>
> (it's computed
>> height) will be used for background-position
> 
> But are you quoting the spec? Because I can't find the above in that section
> (14.2). 
> I can't find any mention of "background-repeat" in these 4 paragraphs.

Perhaps the CSS3 Backgrounds and Borders module is a little bit more clear ?
http://www.w3.org/TR/css3-background/#special-backgrounds

You'd have to read the whole section on backgrounds for the definitions, 
particularly 'background painting area' vs 'background positioning area'. 
Took me 3 readings before I finally got it. Those specs should be written in 
French… much easier :-)

And remember that that 4th paragraph in CSS2.1:14.2 defines a special case, an 
exception to the rules.  Unless specified the rules listed lower in 14.2 apply. 
The wording in the CSS3 module make that more obvious.

> Actually, what I find in there is kind of confusing (may be *you* should
> write the spec ;)

lol :-). That would be a disaster. I'm not a spec writer. 'images' is my thing, 
whatever 'images' may mean.

> "Such backgrounds must also be anchored at the same point as they would be
> if they were painted only for the root element."

That says it all, isn't it ? The root element is no taller than its tallest 
static, inflow descendant (even given the slightly ambiguous case(s) mentioned 
by Alan) - :root != canvas.

Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to