Re: [svgwg] Need to better define what rules apply to an element in an <svg:use> subtree.

While discussing this, we also should re-assess the same-document style matching rules.

Firefox now matches the SVG 2 spec in that case (only matching styles with selectors that can match in the cloned shadow tree fragment), but then gets bug reports from authors who are confused why there CSS selectors aren't matching, when they work in other browsers ([from June 2017](https://bugzilla.mozilla.org/show_bug.cgi?id=1377435), [from October 2018](https://bugzilla.mozilla.org/show_bug.cgi?id=1497361)).

We need to either get commitments from other browser teams to move to the shadow DOM model for style matching, or we need to spec the "clone the cascaded style" approach & figure out all the details that SVG 1 never defined.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/504#issuecomment-428056665 using your GitHub account

Received on Tuesday, 9 October 2018 04:35:51 UTC