Files
sousa-gecko/testing/web-platform/tests/css/css-grid/grid-stale-layoutbox-crash.html
T
Sammy Gill 4276dedccf Bug 2034265 [wpt PR 59416] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=312602, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=312602 (#59416)
--

wpt-commits: 495232125f40274611fd26fa00633b256b6b32a5
wpt-pr: 59416
2026-04-28 18:15:32 +00:00

34 lines
694 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=312602">
<style>
.grid {
display: grid;
grid-template-columns: 100px 100px;
grid-template-rows: 100px;
width: 200px;
}
.item1 {
grid-column: 1 / 2;
grid-row: 1 / 2;
}
.item2 {
grid-column: 2 / 3;
grid-row: 1 / 2;
}
</style>
<div class="grid">
<div class="item1"></div>
<div class="item2"></div>
</div>
<script>
document.body.offsetHeight;
const grid = document.querySelector('.grid');
grid.removeChild(grid.lastElementChild);
const thirdItem = document.createElement('div');
thirdItem.className = 'item2';
grid.appendChild(thirdItem);
document.body.offsetHeight;
</script>