Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-contain/container-iframe-resize-events.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>Containers don't affect the amount of resize events an iframe gets</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="match" href="container-iframe-resize-events-ref.html">
<div style="container-type: inline-size;">
<iframe src="./support/count-resizes.html" style="display: none"></iframe>
</div>
<script>
addEventListener("load", () => {
let frame = document.querySelector("iframe");
frame.style.display = "";
frame.getBoundingClientRect();
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.documentElement.className = "";
});
});
});
</script>