Re: User constant declarations in style sheets

> 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