W3C home > Mailing lists > Public > www-style@w3.org > July 2003

Re: [CSS21] body { padding: 8px; } HTML40 sample stylesheet

From: Todd Fahrner <fahrner@pobox.com>
Date: Wed, 23 Jul 2003 13:33:18 -0700
To: www-style@w3.org
Message-Id: <E517A133-BD4C-11D7-9DE2-003065B71C46@pobox.com>

On Wednesday, Jul 23, 2003, at 13:17 US/Pacific, Jukka K. Korpela wrote:

> Generally, the sample style sheet in the CSS 2 spefication deviates in
> several (and partly odd) ways from the one in CSS 1, and there are 
> strange
> changes in CSS 2.1. In particular, there's a tendency from using the
> logical em unit to using px values.

The sample sheet in CSS1 is more prescriptive than descriptive of 
common UA behavior. The px values in CSS2 are simply descriptive of 
what Mosaic-derivative UAs use(d).

> Except for line-height, where CSS 2.1
> uses the em unit, which is very strange. (It means that the computed 
> value
> is inherited, so the line spacing in inner elements will _not_ be in
> proportion to their own font size.)

That is an outright error; there should be no unit given.

> And moving back to a small value like
> 1.12 is strange too.

That is also based on empirical measurement of legacy behavior, and 
does not represent a recommendation. Personally I tend to prefer the 
higher value, especially as lines grow long, but that wasn't the point.
Received on Wednesday, 23 July 2003 16:33:25 UTC

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