Re: [svgwg] SVG2 spec means elements within a <use> tag can not be targeted for styling (#367)

> in addition to potential overhead, that overhead would grow over time from some users to every user as more agents implemented SVG2.

Yes, it's far from ideal, the mutation observers add non-insignificant overhead, it's usable but makes `use` more expensive.

I wrote the polyfill out of necessity for compatibility rather than a way forward... the sheer number of assets we had utilizing SVG USE were too great to wrangle into the 'new' awkward way of achieving context base styling within the shadow DOM (see higher in this thread).

This is the _other_ problem with this issue: backwards incompatible changes in what is supposed to be a backwards compatible revision...

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

Received on Tuesday, 9 June 2020 13:49:03 UTC