W3C home > Mailing lists > Public > public-fx@w3.org > April to June 2012

filter: url() question

From: Stephen White <senorblanco@chromium.org>
Date: Fri, 25 May 2012 11:34:16 -0400
Message-ID: <CAPeKFTihBC6nwyFX5MJa7zwTU+WVQ6r7Htvn0YWw3KLQERbfew@mail.gmail.com>
To: "public-fx@w3.org" <public-fx@w3.org>
A question about the url() syntax for CSS Filter Effects:  Should SVG nodes
in an external file referenced by url() be added to the DOM?  Ie., should
it be possible to find them by ID from JavaScript?

For example, the Firefox implementation of this feature seems to work for
SVG nodes contained in the same file (since they're already in the DOM at
load time, getElementById() works), but not for externally-referenced
files.  The filter is applied, but getElementById() returns NULL, even
for the filter node whose ID was used as the fragment identifier in the URL.

Is this the intended behaviour?

Stephen
Received on Saturday, 26 May 2012 14:57:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 26 May 2012 14:57:21 GMT