W3C home > Mailing lists > Public > www-style@w3.org > July 2008

RE: [CSS21] Why are browser default style values different from Appendix D

From: Saloni Mira Rai <salonir@microsoft.com>
Date: Sun, 6 Jul 2008 21:33:39 -0700
To: 'CSS' <www-style@w3.org>
Message-ID: <E8245DDD23CF8443A20CDFABD553C2FD2B18B7F864@NA-EXMSG-C112.redmond.corp.microsoft.com>

Reviving this old thread...

Using Alan's template, I updated the table with em values where appropriate. The rows where there is a difference between the majority of browsers and default style are marked as red.

Also, the following styles need special attention:
1. <BR> - this is being debated separately so please ignore for now
2. Page break before on <H1> - none of the browsers do this, so we should simply remove it.
3. Missing vertical align on <TR> - an extra rule should be added for 'inherit' on vertical-align for <TR> (also discussed here: http://lists.w3.org/Archives/Public/www-style/2008Apr/0304.html)


Saloni Mira Rai
IE Developer Experience PM

-----Original Message-----
From: Alan Gresley [mailto:alan@css-class.com]
Sent: Sunday, May 18, 2008 8:20 AM
To: Bruno Fassino
Cc: 'CSS'; Saloni Mira Rai
Subject: Re: [CSS21] Why are browser default style values different from Appendix D

Alan Gresley wrote:

> It seems better expressing these values as em units. For a 96DPI
> setting, FF, Safari and Opera seems to agree that the FORM element has
> 1.12em vertical margins. Also FF, Safari and Opera seems to agree that
> the P, BLOCKQUOTE, DL, OL and UL element has 1.35em vertical margins. Is
> this correct?

My CSS error in my test case (updated). Most current implementations
show the vertical margins of the P, BLOCKQUOTE, DL, OL and UL elements
as 1em. Thank you Philippe and Bruno for correcting me. Knowing this has
allowed me to update the table with more values in em units. I have also
added padding-start for UL and OL elements.


Using another computer (which is now working) with a 1024 by 768 screen
resolution I find that IE8b is still showing different to FF and Safari.


In IE8b the vertical margins on the P element is 18px, thus the blue
height marker of 1em does not match. In FF and Safari the vertical
margins on the P element is 16px, thus matching the blue height marker
of 1em.

I have added a orange height marker of 1.125em (18px) for IE8b. A
screenshot of this clearly shows this difference between IE8b and the
other two implementations (FF and Safari).


In IE8b, comparing all elements in my test case shows difference values
than those that are seen in the table, especially for the FORM and
FIELDSET elements which both show vertical margins of about 18px. I will
sleep now and see if that makes a difference. :-)


Received on Monday, 7 July 2008 04:34:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:38 UTC