table-collapsed-borders-crash.html (705B)
1 <!doctype html> 2 <html class="test-wait"> 3 <link rel="help" href="https://drafts.csswg.org/css-scroll-anchoring/"> 4 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=746570"> 5 <meta name="assert" content="No crash when a table with dirty internal layout is the scroll anchor."/> 6 <style> 7 body { 8 height:200vh; 9 } 10 table { 11 height: 200px; 12 width: 200px; 13 background-color: lime; 14 border-collapse: collapse; /* triggers problematic border calculation */ 15 } 16 </style> 17 18 <table id=table1></table> 19 20 <script> 21 window.scrollBy(0, 10); 22 table1.innerHTML = "<tr><td style='background-color:lightblue'></td></tr>"; 23 document.documentElement.classList.remove('test-wait'); 24 </script> 25 </html>