W3C home > Mailing lists > Public > www-style@w3.org > December 2010

[css3-backgrounds and borders] shadow color optional?

From: Simon Fraser <smfr@me.com>
Date: Thu, 23 Dec 2010 21:14:14 -0800
Message-id: <9799ACF7-2855-48BC-9B75-D1D7CDAFD17B@me.com>
To: www-style list <www-style@w3.org>
The definition of <shadow> in CSS3 Backgrounds  and Borders <http://www.w3.org/TR/css3-background/#the-box-shadow>, which is also reference by text-shadow in CSS3 Text <http://www.w3.org/TR/2010/WD-css3-text-20101005/#text-shadow0>, suggests that the color is optional:

<shadow> = inset? && [ <length>{2,4} && <color>? ]

(I can't find the meaning of "&&" <http://www.w3.org/TR/css3-syntax/#property-defs>, BTW.)

What is expected behavior if the color is missing, for both text-shadow, and box-shadow? The spec should describe this.

Simon
Received on Friday, 24 December 2010 05:14:50 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:35 GMT