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

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

From: Alan Gresley <alan@css-class.com>
Date: Mon, 07 Jul 2008 16:42:27 +1000
Message-ID: <4871BAD3.9080006@css-class.com>
To: Saloni Mira Rai <salonir@microsoft.com>
CC: 'CSS' <www-style@w3.org>

Saloni Mira Rai wrote:
> Hello,
> 
> 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.
[...]
> 
> Thanks,
> Saloni


Thank you Saloni. I wasn't wanting to spend the time to change all those 
heading values from pixels to ems.

You are still missing from your table the padding-start for the <ol> and 
<ul> elements. On my table this property is indicated by the rows with 
the pink background.

http://css-class.com/test/css/defaults/UA-style-sheet-defaults.htm


Gecko and Safari have padding-start in there default style sheets. Opera 
must have a padding-start but I can find no references to Opera's 
default style sheet on the Opera site. IE8b has this padding-start which 
has replaced the margin-left seen in IE7. The difference between IE7 and 
  IE8 is clearly seen in this test case.

http://css-class.com/test/css/defaults/unordered-list.htm


Also you have all the default vertical margins for IE8 given as 1em but 
IE8 is still showing 1.2em for these.

http://css-class.com/test/css/defaults/default-margins.htm


Is IE8b2 (or final release) going to change these default vertical 
margins to the final styles of 1em?


This really needs to be standardized since many CSS authors still use 
the universal reset [1] that flatten all implementations default style 
sheets, thus complicating any authors style sheet.


[1] http://meyerweb.com/eric/tools/css/reset/


Alan
Received on Monday, 7 July 2008 06:43:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT