W3C home > Mailing lists > Public > www-style@w3.org > April 2009

Re: Non-transparent Body Margins

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 14 Apr 2009 10:42:12 -0400
Message-ID: <49E4A0C4.2060806@mit.edu>
To: Michael Jansson <mjan@em2-solutions.com>
CC: www-style@w3.org
Michael Jansson wrote:
> ...I'm getting a page with colored margin. I believe the spec is pretty 
> clear that margins are transparent, thus letter the background of the 
> containing block to show though. However, I think I have read somewhere 
> that there is an exception for the body/root element. 

CSS2.1 section 14.2 (The background), paragraphs 3 and 4.

> A second question would be why there is such a difference between the 
> result in browsers when the DTD is removed from the code above?

Because then you trigger quirks mode.

Received on Tuesday, 14 April 2009 14:42:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:35 UTC