1
0
Fork 0
firefox/testing/web-platform/tests/css/css-contain/crashtests/contain-nested-crash-001.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

24 lines
612 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-contain/#contain-property">
<link rel="help" href="https://crbug.com/1214198">
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
<style>
.contain {
contain: strict;
display: block;
width: 100px;
height: 100px;
}
</style>
<body>
<div id="outer" class="contain">
<div>
<div id="inner" class="contain"></div>
</div>
</div>
<script>
document.body.offsetTop;
inner.appendChild(document.createTextNode('inner-child'));
outer.appendChild(document.createTextNode('outer-child'));
</script>
</body>