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/chrome-bug-346264227-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Chrome crash bug 346264227</title>
<style>
@container (width = 0px) {
#inner {
display: none;
}
}
</style>
<div style="container-type: inline-size">
<div id="inner" style="container-type: inline-size; display: none"><span></span></div>
</div>
<script>
document.body.offsetTop;
document.body.style.width = 0;
inner.style.display = "";
document.body.offsetTop;
</script>