- From: Dean Edridge <dean@55.co.nz>
- Date: Tue, 17 Apr 2007 01:28:32 +1200
- To: 倪阔乐 / Niklas Dougherty <silikon@bredband.net>
- Cc: www-validator-css@w3.org
倪阔乐 / Niklas Dougherty wrote:
>
> I get the following error message when validating my CSS files:
>
> Value Error : text-shadow Property text-shadow doesn't exist : black
> 0.2em 0.2em 0.2em
>
> The page in question is:
>
> http://jigsaw.w3.org/css-validator/validator?uri=http://www.xingfu.se/blogge/
>
>
> The relevant code is:
>
> h2 {
> text-shadow: black 0.2em 0.2em 0.2em;
> }
>
> This is perfectly valid CSS.
>
You're correct, it is valid CSS. But text-shadow it is part of the CSS3
spec and by default the validator users CSS2.1.
So when validating your CSS...
Go to: http://jigsaw.w3.org/css-validator/
-> click: more options
-> select from the Profile option: CSS version 3
then validate your document.
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.xingfu.se%2Fblogge%2F&warning=1&profile=css3&usermedium=all
Dean Edridge
Received on Monday, 16 April 2007 14:38:37 UTC