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

Re: [cssom] serializing <color>

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 16 Feb 2010 11:02:53 -0600
Message-ID: <dd0fbad1002160902o629f09e9kaa4ebc99199c88cf@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: CSS WG <www-style@w3.org>
On Tue, Feb 16, 2010 at 10:51 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 2/16/10 11:44 AM, Tab Atkins Jr. wrote:
>> I grab the value of the color property for my PIR jquery addon, so I
>> can generate an image with appropriate colors.  My color-parsing
>> function is much complicated than it should be just so it can handle
>> all possible variations correctly
> So it sounds like you really want access to the "used color", right?  I have
> no problem with whatever canonicalization we want for used colors, or even
> computed ones.  I'm just not convinced that _specified_ colors should be
> canonicalized.  That would lead to all sorts of weirdness like .style.color
> not matching the string that appears in getAttribute("style"), for example.

Yes, precisely.  I don't care how it gets set up in the end to provide
me with this, but I need it in *some* form.

Received on Tuesday, 16 February 2010 17:03:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:43 UTC