blob: 75a3839add0f0dcc33378ab194f37acdfcc39095 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!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 (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>
|