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

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

From: Erik Dahlstrom <ed@opera.com>
Date: Thu, 07 Jul 2011 14:28:25 +0200
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.vx80xne3geuyw5@localhost.localdomain>
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 GMT

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