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

Re: [css3-background] box-shadow syntax

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 27 Apr 2010 17:51:33 -0700
Message-ID: <4BD78695.8000508@inkedblade.net>
To: Sylvain Galineau <sylvaing@microsoft.com>
CC: "www-style@w3.org" <www-style@w3.org>, Brian Manthos <brianman@microsoft.com>, Prabs Chawla <pchawla@microsoft.com>
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 GMT

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