marker-gcs-after-disconnect-crash.html (618B)
1 <!DOCTYPE html> 2 <title>Don't crash during getComputedStyle which removes ::marker</title> 3 <link rel="help" href="https://drafts.csswg.org/css-conditional-5"> 4 <link rel="help" href="https://crbug.com/1349732"> 5 <style> 6 #container { 7 width: 100px; 8 height: 100px; 9 container-type: size; 10 } 11 @container (width) { 12 span { color: green; } 13 } 14 </style> 15 <ul> 16 <li id="target"></li> 17 </ul> 18 <div id=container> 19 <span>PASS if no crash</span> 20 </div> 21 <script> 22 let li = document.querySelector('li'); 23 getComputedStyle(target, '::marker').width; 24 li.style.listStyleType = 'none'; 25 getComputedStyle(target, '::marker').width; 26 </script>