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

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

From: Saloni Mira Rai <salonir@microsoft.com>
Date: Thu, 1 May 2008 18:28:01 -0700
To: "Ph. Wittenbergh" <jk7r-obt@asahi-net.or.jp>, CSS <www-style@w3.org>
Message-ID: <E8245DDD23CF8443A20CDFABD553C2FD2B0D543D8C@NA-EXMSG-C112.redmond.corp.microsoft.com>

I used an internal test suite which essentially uses the style object to query for values in all browsers. Each test has the element has the only child of body. It reports an "incorrect" style when it doesn't match the value in the default stylesheet.

So this table is reporting computed values in pixels, which why you see 0 instead of auto.


-----Original Message-----
From: Ph. Wittenbergh [mailto:jk7r-obt@asahi-net.or.jp]
Sent: Thursday, May 01, 2008 5:23 PM
Cc: Saloni Mira Rai
Subject: Re: [CSS21] Why are browser default style values different from Appendix D

On May 2, 2008, at 9:01 AM, Saloni Mira Rai wrote:

> I edited Alan's webpage to fix the #NAME errors.

Thanks for that.

A question:  how did you obtain those values ?

Regarding IE (7)
The default margins for the UL in your table are reported as (0 0 0
30pt). That is incorrect. According to the Dom toolbar the values are
'auto', and margin-left:30pt.

The '0' would only be true if the UL is the first and only child of
<body> (body is _always_ a 'hasLayout' container).
A quick, eyeballing, test here shows the default top/bottom value
(@default font-size) to be 20px - approx 1.15em.

Philippe Wittenbergh
Received on Friday, 2 May 2008 01:28:44 UTC

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