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 4515 - CSS Validator doesn't accept text-shadow
Summary: CSS Validator doesn't accept text-shadow
Status: RESOLVED INVALID
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.0 (show other bugs)
Version: CSS Validator
Hardware: Macintosh MacOS X
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://www.chanfair.com/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-01 03:58 UTC by Theodore W. Hall
Modified: 2007-08-11 18:48 UTC (History)
0 users

See Also:


Attachments

Description Theodore W. Hall 2007-05-01 03:58:58 UTC
The validator reports:

   Value Error : text-shadow Property text-shadow doesn't exist : 0 0 3px #000000

I have tried using the keyword black instead of the hexcode #000000.  I have tried putting the color before the lengths.  I have tried omitting the color.  Finally, I tried specifying only the offsets, with neither a color nor a blur radius.  The validator always reports the same error.

The error report links "text-shadow" to the applicable section of the CSS2 specification.  The rejected value seems to conform to the examples in the specification.
Comment 1 Olivier Thereaux 2007-05-01 12:10:43 UTC
http://jigsaw.w3.org/css-validator/validator?text=p+%7Btext-shadow%3A+0+0+3px+%23000000%3B%7D%0D%0A%0D%0A&usermedium=all&warning=1&profile=css2&usermedium=all

The validator uses CSS2.1 as a default profile, and CSS2.1 does not include text-shadow (for lack of implementation). If you wish to validate against the CSS2 profile, use the options - but you are rather encouraged to validate against CSS2.1, which is closer to the current state of implementations of CSS on the Web.
Comment 2 J. Randall Owens 2007-08-11 18:48:54 UTC
(In reply to comment #1)
> The validator uses CSS2.1 as a default profile, and CSS2.1 does not include
> text-shadow (for lack of implementation). If you wish to validate against the
> CSS2 profile, use the options - but you are rather encouraged to validate
> against CSS2.1, which is closer to the current state of implementations of CSS
> on the Web.
> 

Could it at least be fixed so that where it links to "text-shadow" in the error text, it doesn't link to the CSS2 page on it, which makes it look perfectly legitimate? Even when I validate against CSS2.1 specifically, it still links to the CSS2 text-shadow property. (Oddly, when I validate as CSS3, it accepts text-shadow.) Perhaps there's a page explaining why text-shadow was dropped that could be linked to instead?