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:15:38 +1000
Message-ID: <482102BA.2060000@css-class.com>
To: Saloni Mira Rai <salonir@microsoft.com>
CC: Arron Eicholz <Arron.Eicholz@microsoft.com>, "Ph. Wittenbergh" <jk7r-obt@asahi-net.or.jp>, CSS <www-style@w3.org>, Alex Mogilevsky <alexmog@exchange.microsoft.com>

Saloni Mira Rai wrote:
> Hi Alan,
> The data I have sent out actually does not contain the information for nested lists.
> Thanks,
> Saloni

Well that a big error on my part. Let's back track to your list message.


Which has a table attached where you have highlighted rows in pink. You say.

"I also highlighted rows that show differences between the spec and 
current implementations."

I would like to look into these differences between the spec and current 
implementations but I keep on seeing some zeros for one implementation. 
For unordered list you have the property for margin.

| App. D  |  IE7       |  FF2   |  FF3   |  Op    |  Saf   |  Final
|1.12em 0 | 0 0 0 30pt | 16px 0 | 16px 0 | 16px 0 | 16px 0 |  1em 0

If only one element UL appears inside the BODY element then the above 
values in the table is true but the reason that IE7 shows the top and 
bottom margin as zero is that in IE7, the BODY element is hasLayout=true 
by default. The same allies for Ordered List. If the UL or OL was inside 
a DIV with either a border or padding and hasLayout=false then the 
values for IE7 would be.

|  IE7             |
| 19px 0 19px 30pt |

This is the point I drawing your at attention too. As Philippe has said 

"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. The same applies for the margin-top of the H1, H2, 
H3, H4, H5, H6, P elements which I have mentioned [2]. The margin-top 
will disappear in hasLayout=true containers.

It would be of great benefit to see the UA style sheet defaults values 
for IE8 in the table instead of focusing on IE7. The only benefit I can 
see for keeping IE7 in the table is for authors alone.

I will work on an updated table and upload it soon.

[1] http://lists.w3.org/Archives/Public/www-style/2008May/0017.html
[2] http://lists.w3.org/Archives/Public/www-style/2008May/0024.html

Received on Wednesday, 7 May 2008 01:16:22 UTC

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