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

Box model properties and the root element

From: Matthew Brealey <webmaster@richinstyle.com>
Date: Thu, 27 Apr 2000 11:45:00 -0700
Message-ID: <39088AAC.3A46@richinstyle.com>
To: www-style@w3.org
Should not the root element of an unstyled XML document have zero
margins in the absence of the possibility of a conceptual or concrete UA
style sheet (i.e., because there is no elements that the UA can style)? 

Clearly :root {display: block; margin: 5px /* Or whatever */} is
required for current UA behaviour, but this prevents a difficulty: it is
also necessary that UAs specify margins not on HTML (the root element)
but rather on BODY for compatibility with current documents (i.e., since
current practice is to specify margins on BODY, which override those of
the user agents whereas to specify them on HTML (:root) would be mean
that those specified by the document author would be in addition to
those on BODY). 

So what then is the solution to this logical difficulty?

There are, as I see it, three solutions:

A. that :root should match BODY for HTML documents for reasons of
compatibility with 'legacy' content
B. that different conceptual style sheets should apply to documents with
an HTML dtd than other dtds
C. that :root should not apply to HTML documents at all

Please visit http://RichInStyle.com. Featuring:
MySite - offer your users customizable styles.
AlwaysWork style - style sheets that always work.
Browser bug table covering all of CSS2 with links to full descriptions.
Lists of more than 1000 browser bugs, plus demonstrations of each.
Websafe Colorizer - view all foreground colors with all backgrounds. 
CSS2, CSS1 and HTML4 tutorials.
CSS masterclass - how to write better style sheets.
CSS2 test suite with 5000++ tests and 300+ test pages.
Received on Thursday, 27 April 2000 06:40:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:54 UTC