content-visibility-hit-test-contents-crash.html (671B)
1 <!doctype html> 2 <link rel=author name="Vladimir Levin" href="mailto:vmpstr@chromium.org"> 3 <link rel=assert content="Hit testing around hidden elements should not crash regardless of contents"> 4 5 <style> 6 .box { width: 100px; height: 100px; border: 1px solid black; } 7 .hidden { content-visibility: hidden } 8 </style> 9 10 <div id=container class="box hidden"> 11 content 12 <dialog id=dialog> 13 dialog 14 <div id=inner></div> 15 </dialog> 16 </div> 17 text 18 19 <script> 20 function runTest() { 21 inner.getBoundingClientRect(); 22 document.elementFromPoint(20, 109); 23 document.elementFromPoint(20, 20); 24 } 25 26 onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest)); 27 </script>