W3C home > Mailing lists > Public > www-svg@w3.org > October 2009

Renaming 'filter' member of CSSStyleDeclaration

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 19 Oct 2009 10:17:44 +1300
Message-ID: <11e306600910181417tec10e19h4327d94315571a59@mail.gmail.com>
To: www-svg <www-svg@w3.org>
According to Webkit people (whom I have no reason to doubt), exposing
'filter' as a member of CSSStyleDeclaration in browsers is perilous because
many Web sites do
  if (typeof(element.style.filter) == 'string') { ... set opacity using IE's
DirectX filters }
  else { ... set opacity using standard CSS 'opacity' ... }

They've worked around it by making 'filter' undetectable with magic JS hacks
similar to what multiple browsers do with "document.all". But a much simpler
solution is to name the CSSStyleDeclaration member instead, say 'svgFilter'.
How do people feel about that? I'm not sure if any spec needs to be changed
since apparently the names of the CSSStyleDeclaration SVG members aren't
actually in any spec...

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Sunday, 18 October 2009 21:18:12 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:43 GMT