Re: [svgwg] <svg:use> shadow tree shouldn't be open. (#875)

The SVG Working Group just discussed `Clarify <iframe> behavior in <svg:use>`, and agreed to the following:

* `ACTION: karlcow to create tests for understanding the way it is currently implemented.`

<details><summary>The full IRC log of that discussion</summary>
&lt;krit> topic: Clarify &lt;iframe> behavior in &lt;svg:use><br>
&lt;krit> https://github.com/w3c/svgwg/issues/876<br>
&lt;ydaniv> scribe+<br>
&lt;ydaniv> karlcow: we had a discussion in TPAC about shadow trees<br>
&lt;ydaniv> ... clarify that the script elements inside iframes inside an svg:use<br>
&lt;ydaniv> ... we create a shadow tree, and what the use creates inside it, with the iframe, how does it execute scripts loaded inside that iframe<br>
&lt;ydaniv> krit: question is, what does inert scripts mean?<br>
&lt;ydaniv> dmangal: by inert we mean not able to modify shadow DOM elements<br>
&lt;ydaniv> karlcow: when it's inert you can't modify anything visible to the script<br>
&lt;ydaniv> dmangal: it also means it won't execute at all<br>
&lt;ydaniv> karlcow: yeah<br>
&lt;ydaniv> ydaniv: I guess inert should cascade down to iframes<br>
&lt;ydaniv> krit: you're saying people are relying on this behavior?<br>
&lt;ydaniv> ydaniv: yes, if this is what scripts do then seem silly to be able to bypass<br>
&lt;ydaniv> krit: is it implemented in SF?<br>
&lt;ydaniv> karlcow: have to check<br>
&lt;ydaniv> krit: in WK and Blink foreignObject isn't properly implemented according to shadow DOM spec<br>
&lt;ydaniv> ... don't see a reason why it should behave differently but should be specified<br>
&lt;ydaniv> karlcow: need more tests<br>
&lt;ydaniv> krit: yes<br>
&lt;ydaniv> ... spec text should be based on current implementations<br>
&lt;ydaniv> ... do we have anything to resolve on now?<br>
&lt;karlcow> ACTION: karlcow to create tests for understanding the way it is currently implemented.<br>
&lt;ydaniv> karlcow: I'll try to create tests and understand the way it's currently working<br>
&lt;ydaniv> Github: https://github.com/w3c/svgwg/issues/875<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/875#issuecomment-3556343549 using your GitHub account


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

Received on Thursday, 20 November 2025 07:28:10 UTC