[Bug 2307] line-height: 0 generates parse error

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2307





------- Additional Comments From eric@meyerweb.com  2006-02-09 00:15 -------
(In reply to comment #0)
> A line-height value of 0 without a length unit generates a parse error and a
> complaint about an empty string.  Adding any length unit value (e.g. "0em")
> cures the error.  Of course, unit values are supposed to be optional.  This
> appears to be a very recently-introduced issue (since 9/25/05 or thereabout).

Actually, this seems to happen for any integer number with no unit; see http://jigsaw.w3.org/css-
validator/validator?profile=css2&warning=2&uri=http%3A%2F%2Falistapart.com%2F for one such 
example (line-height: 1;).  Apparently another way to step around this bug is to convert to decimal, as 
in: line-height: 1.0;.

Furthermore, unit values aren't optional.  United values for line-height have very, very different effects 
than unitless values; they're as different as apples and oranges.

Received on Thursday, 9 February 2006 00:15:51 UTC