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 12307 - Error '0 is not a box-shadow value' validating CSS 3
Summary: Error '0 is not a box-shadow value' validating CSS 3
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 3 (show other bugs)
Version: CSS Validator
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-15 15:46 UTC by Ted Roche
Modified: 2012-08-30 17:58 UTC (History)
2 users (show)

See Also:


Attachments

Description Ted Roche 2011-03-15 15:46:27 UTC
Traditional sizing allows a zero value to be specified without unit, but failing to specify a unit for the first argument of box-shadow causes the validator to fail.

The CSS declaration:

nav ul ul { box-shadow:0 3px 3px #C0C0C0; -moz-box-shadow:0 3px 3px #C0C0C0; -webkit-box-shadow:0 3px 3px #C0C0C0; display:none; position:absolute; top:38px; left:0; float:left; width:180px; z-index:99999; }

fails with the validation error '0 is not a box-shadow value' while:

nav ul ul { box-shadow:0px 3px 3px #C0C0C0; -moz-box-shadow:0px 3px 3px #C0C0C0; -webkit-box-shadow:0px 3px 3px #C0C0C0; display:none; position:absolute; top:38px; left:0; float:left; width:180px; z-index:99999; }

validates. (Other units appear to work as well.)

Original source is from https://github.com/richardshepherd/TwentyTenFive/blob/master/style.css, line 36, with the rgba() call changed, as that doesn't validate per the bug listed below:

Possibly related: http://www.w3.org/Bugs/Public/show_bug.cgi?id=11880
Comment 1 Hans Christian Reinl 2011-11-30 18:09:05 UTC
The error '0 is not a value' for box-shadow declarations still exits.
Any update or possible change to solve this?
Comment 2 Yves Lafon 2012-08-30 17:58:05 UTC
Fixed when box-shadow was reimplemented