W3C home > Mailing lists > Public > www-style@w3.org > April 2005

Re: User constant declarations in style sheets

From: David Woolley <david@djwhome.demon.co.uk>
Date: Tue, 26 Apr 2005 20:49:47 +0100 (BST)
Message-Id: <200504261949.j3QJnlJ02352@djwhome.demon.co.uk>
To: www-style@w3.org

> You have really understood nothing of this thread.

Your English was not very clear, and I think you confused leading and
line height.

> The line height example is just an example. Once the line height is

I don't believe it is a good enough example to establish a use case.

> p { line-height: 1.2em; }

Please only use pure numeric line heights.  Others tend to produce unreadable
text when users override font sizes.

> h1 { margin-top: 2lh; margin-bottom: 1lh; }

This syntax wouldn't be acceptable because it would conflict with newly
defined units.  You would have to make constant support mandatory on
any browser with new units (or vendor specific ones) to ensure the browser
understood that lh wasn't the new lh unit.

It would only be better than em in the rare cases when integral multiples
of line height were used (these margins are normally less than 1 em).

As noted previously, this is easy to do in the server or authoring tool 
without causing the page to break for the next ten years in browsers that
didn't support the proposed feature, and from the number of times it has been
rejected before, I think it unlikely to happen.  (There is also a fear that
this is the thin end of the edge of full scripting.)
Received on Tuesday, 26 April 2005 20:03:38 UTC

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