This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2285 - Number as Interger marked as invalid
Summary: Number as Interger marked as invalid
Status: RESOLVED DUPLICATE of bug 2272
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.0 (show other bugs)
Version: CSS Validator
Hardware: All All
: P2 major
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL: http://www.andybudd.com/test/number.css
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 08:29 UTC by Andy Budd
Modified: 2005-09-22 09:56 UTC (History)
0 users

See Also:


Attachments

Description Andy Budd 2005-09-22 08:29:51 UTC
The line-height property can take a <number> value. 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.

However when using a number that is an integer, the validator flags this as an error.

e.g. 

line-height:1; is marked as an error

whereas

line-height: 1.0; is fine
Comment 1 Olivier Thereaux 2005-09-22 09:56:42 UTC
This problem has been reported already this week. I hope it can be fixed soon.

*** This bug has been marked as a duplicate of 2272 ***