Re: [css3-background] box-shadow syntax

Brad Kemper wrote:
> On May 8, 2008, at 9:48 AM, Eli Morris-Heft wrote:
>> Much as I hate to suggest adding another keyword for this, I agree 
>> that we probably need inner and outer here, but I'm not sure why 
>> you've suggested that syntax. I may be rusty on my CSS, but I don't 
>> think <length>(keyword) appears anywhere else. Hence:
>> box-shadow: none | <shadow> [inner | outer] [, <shadow> [inner | outer]]*
>> where <shadow> is: [<length> <length> <length>? || <color>]
>> I was (and still am) tempted to have '[inner | outer]' be optional and 
>> default of outer, due to the expectation for a shadow behind and 
>> outside the object, rather than on top of and within. Perhaps we need 
>> to (re)define shadow?
> Yes, adding "inner" and "outer" as additional parameters of the 
> box-shadow/text-shadow value (with a default of "outer") would be more 
> obvious. That might be a better way to go.

BTW, I stilling learning syntax

box-shadow: none | <shadow> [inner | outer] [, <shadow> [inner | outer]]*
where <shadow> is: [<length> <length> <length>? || <color>]

and what it all means. I only code CSS. Ok, the default could be.


and optional keywords (in brackets)

4px(even) -  no graduation.

Since all these extras can be added by later implementations. Do we 
allow two words (inner-cloudy) or values (electric=3).

This must be done with some thought since () within a selector or a 
style declaration are dropped by most implementations (which is good) 
but can be used for CSS3/4 in powerful ways.


Received on Friday, 9 May 2008 02:48:28 UTC