Re: [css3-background] Default shadow color

On Mar 4, 2011, at 10:26 AM, Brian Manthos <brianman@microsoft.com> wrote:

> And here's another example that animates the shadow with jscript but could easily be done with an animatable 'color' property where it would be more complicated to animate box-shadow directly (if supported at all).

I don't understand. What woulnt be supported at all? What's wrong with the following line (altered):

> var div = document.getElementsByTagName("div")[0];
>   div.style.boxShadow = "0 0 50px rgb(" + i + "," + i + "," + i + ")";
> }

Sure it is SLIGHTLY longer, but seems a better choice anyway than requiring something in the source (your span) to recolor the text.

Received on Friday, 4 March 2011 19:01:20 UTC