text-display-contents-crash.html (744B)
1 <!doctype html> 2 <title>Crash with dynamic creation of absolutely positioned element under display: contents in svg:text.</title> 3 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1611848"> 4 <style> 5 * { 6 position: absolute; 7 } 8 </style> 9 <script> 10 function start () { 11 const text = document.getElementById('text') 12 13 const div = document.createElementNS('http://www.w3.org/1999/xhtml', 'div') 14 div.style.display = "contents"; 15 16 const another = document.createElementNS('http://www.w3.org/2000/svg', 'whatevs') 17 text.appendChild(div); 18 document.documentElement.getBoundingClientRect(); 19 div.appendChild(another); 20 } 21 22 document.addEventListener('DOMContentLoaded', start) 23 </script> 24 <svg> 25 <text id='text'>