On Sep 2, 2010, at 1:56 PM, Thierry Koblentz wrote: > Without background styling of HTML, body should be painted from top to > bottom of the viewport regardless of content isn't? >> From my understanding of the spec, it is the background styling of HTML that > vertically shrink-wraps body (the reason for my "fix"). If you add a > background-color to body you'll see what I mean. > So may be the spec is about the painting of a background-color, but not > relevant when it comes to the positioning of a background image(?).
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 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/