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

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.

http://lists.w3.org/Archives/Public/www-style/2008May/0014.html


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 
[1].

"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


Alan

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