W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2012

[Bug 15988] New: box-shadow with 4 lengths yields "Parse Error [empty string]"

From: <bugzilla@jessica.w3.org>
Date: Tue, 14 Feb 2012 21:10:00 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-15988-169@http.www.w3.org/Bugs/Public/>

           Summary: box-shadow with 4 lengths yields "Parse Error [empty
           Product: CSSValidator
           Version: CSS Validator
          Platform: All
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSS 3
        AssignedTo: dave.null@w3.org
        ReportedBy: jean@lalabobo.net
         QAContact: www-validator-cvs@w3.org

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>? ]

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 14 February 2012 21:10:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:54 UTC