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

Re: [cssom] serializing <color>

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 16 Feb 2010 12:15:10 -0500
Message-ID: <4B7AD29E.6060704@mit.edu>
To: Anne van Kesteren <annevk@opera.com>
CC: CSS WG <www-style@w3.org>
On 2/16/10 12:12 PM, Anne van Kesteren wrote:
>> In a completely static document, yes. If you set .style.color from
>> script, then every UA I'm aware of has the style attribute value
>> matching the .style.color getter-provided value thereafter.
>
> Sure, but it is normalized, in the three UAs I tested. Another example
> that tests this scenario:
>
> <!DOCTYPE html><body>x
> <script>
> document.body.style.color = "#000"
> w(document.body.style.color)
> </script>

Please see my message about the normalization Gecko does and does not 
perform at parse time.

> So if you think this is ok, changing specified values should be ok too
> (and in fact already happens). Figuring out to what degree we want to
> canonicalize them was the idea of this thread. Preserving system colors
> makes sense to me, for instance.

OK.  As far as I'm concerned, preserving system colors is a must and 
preserving named colors is highly desirable for readability 
round-tripping.  I don't have a strong preference for the rest.

-Boris
Received on Tuesday, 16 February 2010 17:21:20 GMT

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