[cssom-view] extending CSSStyleDeclaration with the CSS properties defined in SVG 1.1

This is a comment on the CSSOM editor's draft,  
http://dev.w3.org/csswg/cssom/.

There are at least three different implementations (webkit, gecko and  
presto) that support the CSS properties added by SVG 1.1 on the  
CSSStyleDeclaration interface[1]. Could they[2] all be added to the next  
CSSOM draft please?

It would also be helpful if the serialization of said properties was  
agreed on and required in this spec, since there are some minor  
differences in what certain properties get serialized as, see e.g [3]. In  
part this example suffers from the issue pointed out in the draft about  
<color> value serialization.


[1] http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface
[2] http://www.w3.org/TR/SVG11/propidx.html
[3] data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"  
style="fill:url(%23foo)  
rgb(12,34,56)"><script>alert(document.documentElement.style.fill)</script></svg>

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed

Received on Thursday, 7 July 2011 12:28:56 UTC