Re: [svgwg] <svg:use/> allows for infinite reference cycles. (#770)

```
<svg>
  <defs>
    <g id="a">
      <rect x="10" y="10" width="50" height="50" fill="red"/>
      <use href="#b" x="60"/>
    </g>
    <g id="b">
      <rect x="10" y="10" width="50" height="50" fill="green"/>
      <use href="#c" x="60"/>
    </g>
    <g id="c">
      <rect x="10" y="10" width="50" height="50" fill="blue"/>
      <use href="#a" x="60"/>
    </g>
  </defs>
  <use href="#a"/>
</svg>
```

(also [on codepen](https://codepen.io/george-steel/pen/xxbPZJg))

In the shadow copy of #c, #a is not an ancestor but a copy of it is. 

-- 
GitHub Notification of comment by george-steel
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/770#issuecomment-570757086 using your GitHub account

Received on Saturday, 4 January 2020 05:00:53 UTC