blob: 2162e5db03430e59f4ba16a44a8fff5a205e3e40 [file] [log] [blame]
<!doctype html>
<title>@container changing display of SVG element should not crash</title>
<link rel="help" href="https://crbug.com/1245689">
<iframe id="frame" style="width: 200px"></iframe>
<script>
frame.srcdoc = `
<style>
#container {
container-type: inline-size;
}
@container size(min-width: 300px) {
.hide { display: none; }
}
</style>
<div id="container">
<div class="hide"><svg></svg></div>
</div>`;
requestAnimationFrame(() =>
requestAnimationFrame(() =>
requestAnimationFrame(() => frame.style.width = "400px")));
</script>