W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2006

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

From: <bugzilla@wiggum.w3.org>
Date: Thu, 09 Feb 2006 00:15:42 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1F6zTK-0005sq-Qq@wiggum.w3.org>


------- 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:16 UTC