[css3-backgrounds and borders] shadow color optional?

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 UTC