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

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

From: Alan Gresley <alan@css-class.com>
Date: Wed, 07 May 2008 12:58:16 +1000
Message-ID: <48211AC8.8050702@css-class.com>
To: Saloni Mira Rai <salonir@microsoft.com>
CC: Arron Eicholz <Arron.Eicholz@microsoft.com>, CSS <www-style@w3.org>

Alan Gresley wrote:

> "According to the Dom toolbar the values are 'auto', and margin-left:30pt."
> 
> 
> For IE7 the vertical margins with auto for unordered list is 
> approximately 19px.


I will add that I have confused 'auto' with 'default' as in.


Default:

<ul>
<li>Item</li>
</ul>


Vertical margins with Auto:

<ul style="margin-top: auto; margin-top: auto;">
<li>Item</li>
</ul>


The former case will show the default vertical margins of the UL and the 
later should resolve 'auto' to '0' as per the spec.


http://www.w3.org/TR/CSS21/visudet.html#normal-block

If 'margin-top', or 'margin-bottom' are 'auto', their used value is 0.


It would help us all to see first hand some of the internal test that 
Arron has done.


Alan
Received on Wednesday, 7 May 2008 02:59:01 GMT

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