HighDots Forums  

Re: HTML vs BODY container

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: HTML vs BODY container in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lachlan Hunt
 
Posts: n/a

Default Re: HTML vs BODY container - 05-29-2006 , 11:28 PM






Toby Inkster wrote:
Quote:
No browser (that I know of) does this properly anyway.

e.g.

HTML {
background: cyan;
margin: 2em;
padding: 2em;
}

In a correct rendering of CSS, the 2em of blank space created by the
padding should be cyan, but the 2em of blank space created by the margin
should not.
No, because the background colour of the root element is applied to the
entire canvas:

Quote:
The background of the root element becomes the background of the
canvas and covers the entire canvas, anchored at the same point as
it would be if it was painted only for the root element itself.
http://www.w3.org/TR/CSS21/colors.html#q2

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox


Reply With Quote
  #2  
Old   
Lachlan Hunt
 
Posts: n/a

Default Re: HTML vs BODY container - 06-01-2006 , 11:03 AM






Toby Inkster wrote:
Quote:
Lachlan Hunt wrote:

No, because the background colour of the root element is applied to the
entire canvas:

| The background of the root element becomes the background of the
| canvas and covers the entire canvas, anchored at the same point as
| it would be if it was painted only for the root element itself.

http://www.w3.org/TR/CSS21/colors.html#q2

Only in CSS 2.1 (Draft). In CSS 1.0 and CSS 2.0 (both Recommendations),
this is an error.
CSS 2.1 is CSS 2!
http://ln.hixie.ch/?start=1111107793&count=1

Although CSS2.1 has since been pulled back to WD from CR since that
article was written (due to significant implementation feedback),
regardless of it's official status, CSS2.1 is far more relevant than CSS2.

No browser is aiming to implement CSS2, they're all implementing CSS2.1
and the CSS WG is waiting for at least 2 of them to finish before it can
advance to a REC.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.