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 11:44:39 +1000
Message-ID: <48210987.9030104@css-class.com>
To: Alan Gresley <alan@css-class.com>, www-style@w3.org

L. David Baron wrote:
> On Tuesday 2008-05-06 23:04 +1000, Alan Gresley wrote:
[...]
>> I would suggest this change (or similar) to match existing behavior.
>>
>> ol ul, ul ol,
>> ul ul, ol ol    { margin-top: 16px; margin-bottom: 16px }
> 
> I don't see how the test page you give is related to this rule 
> in Appendix D.  The test page does not contain any nested lists.
> Gecko certainly has zero margins on nested lists; I haven't checked
> other implementations.  (Unfortunately, HTML nested list structure
> makes it hard to distinguish nested lists that are part of a single
> list structure from a separate list that happens to be inside a list
> item.)
> 
> Also, the default margins are more likely to be '1em' than '16px'.
> 
> -David
> 
>> [1] http://css-class.com/test/css/defaults/unordered-list.htm


Thank you David. I was wrong. This did prompt another testcase.

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


This clearly shows that all implementations show.

ol ul, ul ol,
ul ul, ol ol    { margin-top: 0; margin-bottom: 0 }


This matter is closed. :-/


Alan
Received on Wednesday, 7 May 2008 01:45:26 GMT

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