Re: [css3-background] box-shadow syntax

On 04/27/2010 05:31 PM, Sylvain Galineau wrote:
> Note: the WG has resolved to add box-shadow back to CSS3 Background&
> Borders [1] but as the editor's draft has not yet been updated,

Sorry, Sylvain, but I beat you to it by ten minutes. :)
   http://dev.w3.org/csswg/css3-background/#box-shadow
Hit reload.

> The syntax, as described, allows values such as:
>
> box-shadow: inset;
> box-shadow: inset blue;
> box-shadow: blue;
>
> These values are syntactically valid but will have no effect in the
> absence of offsets and other shadow radii.
>
> Is this intentional ?
> Should we update the specified syntax to forbid such values ?

The first two lengths are required:

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

~fantasai

Received on Wednesday, 28 April 2010 00:52:14 UTC