It would seem that the CSS validator has a bug in its handling of <number> values.

The CSS spec says that:

A <number> can either be an <integer>, or it can be zero or more digits followed by a dot (.) followed by one or more digits.

So 1 and 1.0 are both valid numbers.

However if you run the following code through the validator:

http://www.andybudd.com/test/number.css

which contains

h3 {
  line-height: 1.0
}

h4 {
  line-height: 1;
}

It says that 1 is not a valid number and thus marks your code as invalid!


Yours

Andy Budd

http://www.andybudd.com/
01273 241355
07880 636677

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to