> On Fri, 9 Mar 2007, ivan wrote: > > On Fri, Mar 09, 2007 at 12:08:47AM +0000, Ian Hickson wrote: > > ... > > > 14.2 paragraph 4: change to: > > > > > > For HTML documents, however, we recommend that authors specify the > > > background for the BODY element rather than the HTML element. > > ... > > > > Why recommend? Which browser doesn't allow html selector yet? I'd say deprecate. Because there's an installed base of style sheets on the Web that use body for this purpose, and the cascading rules don't interact particularly well with the rule about HTML and BODY if some style sheets use HTML and some use BODY. In other words, if HTML and BODY are mixed, e.g., between user and author style sheets or between site-wide style sheets and page-specific style sheets, you'll end up with a margin around the page getting the background from HTML and the body of the page getting the color from BODY, instead of whichever one is higher in the cascade winning. So now that there's an installed base using BODY, it's better to stick to it. -David -- L. David Baron <URL: http://dbaron.org/ > Technical Lead, Layout & CSS, Mozilla CorporationReceived on Friday, 9 March 2007 02:54:54 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:22:36 GMT