W3C home > Mailing lists > Public > www-validator-css@w3.org > August 2012

Re: W3C CSS Validator suggestions - rgba - vendor specific

From: Philip TAYLOR <P.Taylor@Rhul.Ac.Uk>
Date: Sun, 12 Aug 2012 10:50:33 +0100
Message-ID: <50277C69.3040606@Rhul.Ac.Uk>
To: Denis TRUFFAUT <denis.truffaut@outlook.com>
CC: "www-validator-css@w3.org" <www-validator-css@w3.org>


Denis TRUFFAUT wrote:

> I have 2 suggestions :
>
> *1 - text-shadow with rgba colors should pass the validation.* It is
> allowed for colors, so why not for shadows ? Plus, it is part of the
> CSS3 specification ! Ex :  text-shadow : 0 0 5px rgba(0,0,0,0.5);


There does indeed seem to be a bug in the validator here;
the first passes validation, while the second does not :

  .foo {Box-shadow: 64px 64px 12px 40px rgba(0,0,0,0.4),
            12px 12px 0px 8px rgba(0,0,0,0.4) inset}

  .foo {Text-shadow: 64px 64px 12px 40px rgba(0,0,0,0.4),
            12px 12px 0px 8px rgba(0,0,0,0.4) inset}

Example taken from http://www.w3.org/TR/css3-background/#the-box-shadow,
http://www.w3.org/TR/css3-text/, Section 10.3. Text Shadows: the
‘text-shadow’ property states :

> This property accepts a comma-separated list of shadow effects to be
> applied to the text of the element. Values are interpreted as for
> ‘box-shadow’. [CSS3BG]

Philip Taylor
Received on Sunday, 12 August 2012 09:51:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 12 August 2012 09:51:07 GMT