[svgwg] Specify how <svg:use> mutations get reflected in the shadow tree. (#1002)

emilio has just created a new issue for https://github.com/w3c/svgwg:

== Specify how <svg:use> mutations get reflected in the shadow tree. ==
This comes from a discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1983782.

Whether the whole tree is re-cloned or not is observable via things like CSS transitions.

Right now the way Firefox implements the reflection is re-cloning the shadow tree asynchronously before the next style update happens. Some other more fine-grained reflection might be worth it, but I think we should specify at what time does it happen... Should we use `MutationObserver` timing? Some sort of synchronous thing?

Mapping between the old and new trees in presence of mutations becomes rather tricky (that's why I implemented it originally as a full-clone...). Definitely possible to implement, but...

cc @lilles @longsonr 

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1002 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 1 September 2025 10:55:13 UTC