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 15988 - box-shadow with 4 lengths yields "Parse Error [empty string]"
Summary: box-shadow with 4 lengths yields "Parse Error [empty string]"
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 3 (show other bugs)
Version: CSS Validator
Hardware: All Windows XP
: 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: 2012-02-14 21:09 UTC by Jean Rajotte
Modified: 2012-09-03 21:12 UTC (History)
0 users

See Also:


Attachments

Description Jean Rajotte 2012-02-14 21:09:59 UTC
The following valid snippet causes the validator to complain of a Parse Error:

.frozenY { box-shadow: 0px 2px 4px -2px #BBB; }

Replace "-2px" with "2px" and there's still an error -- it's not the "-".
Remove the "-2px" and there's no error.

Therefore it's 4 lengths that are seen as illegal.

The browser (Chrome, FF) renders the shadow as designed, and according to http://www.css3.info/preview/box-shadow/  this is valid CSS:

box-shadow: none | <shadow> [ , <shadow> ]*
<shadow> = inset? && [ <length>{2,4} && <color>? ]
Comment 1 Yves Lafon 2012-09-03 21:12:59 UTC
fixed when box-shadow was re-implemented.