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 166 - Mixing absolute and relative lengths error when absolute is just 0
Summary: Mixing absolute and relative lengths error when absolute is just 0
Status: RESOLVED WORKSFORME
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 1.0 (show other bugs)
Version: CSS Validator
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact: qa-dev tracking
URL: http://jigsaw.w3.org/css-validator/va...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-06 16:16 UTC by Andrew Urquhart
Modified: 2004-10-27 11:24 UTC (History)
0 users

See Also:


Attachments

Description Andrew Urquhart 2003-03-06 16:16:00 UTC
This may or may not be a bug but more of a feature. When validating a statement 
such as:




margin: 0 2%;




The current (2003-03-06 21:06 UTC) W3.org web-based CSSValidator advises a 
warning:




"You have some absolute and relative lengths in margin. This is not a robust 
style sheet."




However, I feel that '0' is not an absolute measurement in the same way as 0px 
or 0pt, but more a case of 'null'. If I had a statement such as: margin: 1px 2% 
then I'd agree with the reported warning. Writing the statement as margin: 0% 2% 
to please the validator would seem to be inviting a browser bug somewhere or 
other.




Best,