Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-conditional/container-queries/crashtests/math-block-container-child-crash.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>CSS Container Queries Test: Math block container child crash</title>
<p>Pass if there is no crash.</p>
<math id="m" style="display:block math"></math>
<script>
let div = document.createElement("div");
div.style.containerType = "size";
m.appendChild(div);
div.appendChild(document.createElement("span"));
document.body.offsetTop;
div.style.color = "green";
</script>