container-iframe-resize-events.html (968B)
1 <!doctype html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <title>Containers don't affect the amount of resize events an iframe gets</title> 5 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> 6 <link rel="author" title="Mozilla" href="https://mozilla.org"> 7 <link rel="help" href="https://drafts.csswg.org/css-conditional-5/#propdef-container-type"> 8 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1935189"> 9 <link rel="match" href="container-iframe-resize-events-ref.html"> 10 <div style="container-type: inline-size;"> 11 <iframe src="./support/count-resizes.html" style="display: none"></iframe> 12 </div> 13 <script> 14 addEventListener("load", () => { 15 let frame = document.querySelector("iframe"); 16 frame.style.display = ""; 17 frame.getBoundingClientRect(); 18 requestAnimationFrame(() => { 19 requestAnimationFrame(() => { 20 document.documentElement.className = ""; 21 }); 22 }); 23 }); 24 </script>