W3C home > Mailing lists > Public > www-style@w3.org > March 2011

Re: [css3-background] Default shadow color

From: Brad Kemper <brad.kemper@gmail.com>
Date: Fri, 4 Mar 2011 11:00:39 -0800
Message-Id: <00F741EF-F2D8-4AA0-AC92-7069C5CA18EC@gmail.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>, Estelle Weyl <estelle@weyl.org>
To: Brian Manthos <brianman@microsoft.com>

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 GMT

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