- From: Simon Pieters <simonp@opera.com>
- Date: Tue, 16 Apr 2013 17:05:06 +0200
- To: www-style@w3.org, "Boris Zbarsky" <bzbarsky@mit.edu>
- Cc: "Erik Dahlstrom" <ed@opera.com>
On Thu, 07 Jul 2011 14:28:25 +0200, Erik Dahlstrom <ed@opera.com> wrote: > 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> I've made the spec expose all CSS properties supported by the user agent. https://dvcs.w3.org/hg/csswg/rev/360713dc452f On Fri, 08 Jul 2011 21:42:23 +0200, Boris Zbarsky <bzbarsky@mit.edu> wrote: > For example, this testcase: > > <!DOCTYPE html> > <pre><script> > document.writeln(typeof(document.documentElement.style.filter)) > </script></pre> > > writes out "string" in Gecko and Presto but "undefined" in WebKit. This writes out "string" in all three now, so I haven't special-cased it in the spec. cheers -- Simon Pieters Opera Software
Received on Tuesday, 16 April 2013 15:05:39 UTC