| <!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> |