[webkit-dev] Delaying Applying CSS Effects

Dean Jackson dino at apple.com
Tue Jul 24 15:56:28 PDT 2012


On 25/07/2012, at 6:09 AM, Keyar Hood <keyar at chromium.org> wrote:

> I am working on https://bugs.webkit.org/show_bug.cgi?id=90405
> 
> The problem is that when doing SVG filters in CSS using URL references, if the target SVG filter is after the element that the filter is to be applied to (the filtered element), then the filter will not be applied.
> 
> Looking at the code, a getElementByID() call is made when looking for the target SVG filter. However, this does not work when the target SVG filter is after the filtered element. I believe this is because the DOM element for the target SVG filter does not exist yet.
> 
> I am wondering if there is some way to delay resolving these CSS effects until after the DOM has finished loading.

Your analysis sounds right. I think we'll have to do exactly that: delay calling buildFilterEffectRenderer until the document has loaded.

Dean


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120725/ed9828ce/attachment.html>


More information about the webkit-dev mailing list