W3C home > Mailing lists > Public > www-style@w3.org > May 2008

Re: [css3-background] box-shadow syntax

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 07 May 2008 08:33:37 -0700
Message-ID: <4821CBD1.7020704@inkedblade.net>
To: Eli Morris-Heft <dai@doublefishstudios.com>
CC: www-style@w3.org

Eli Morris-Heft wrote:
> 
> Bert Bos wrote:
>> [grammar 2:]
>>
>>     none | <shadow> [ , <shadow> ]*
>>
>> where
>>
>>     <shadow> = <length> <length> <length>? <color>? |
>>                <color> <length> <length> <length>?
>>
>> (I think the grammar for 'text-shadow' in the Text module is like 
>> this; and indeed I believe the grammar for 'text-shadow' and 
>> 'box-shadow' should be the same.)
> 
> It is (with the exception of a dropped question mark after '<color>' in 
> the second line), though
> 
> <shadow> = <length> <length> <length>? || <color>
> 
> may be more concise.

That would make

   text-shadow: blue;

valid. Which I don't think is quite the intent. :)

~fantasai
Received on Wednesday, 7 May 2008 15:34:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:06 GMT