marker-with-mask-cycle-crash.html (415B)
1 <!doctype html> 2 <title>Marker with mask reference cycle</title> 3 <svg> 4 <mask id='mask'> 5 <path d='M0,0h50v50h-50z' marker-start='url(#marker)'/> 6 </mask> 7 <marker id='marker' mask='url(#mask)'></marker> 8 <path d='M0,0h100v100h-100z' fill='green' marker-start='url(#marker)'/> 9 </svg> 10 <script> 11 document.body.offsetTop; 12 document.querySelector('#marker').setAttribute('fill', 'url(#nonexisting)'); 13 </script>