Files
ladybird/Tests/LibWeb/Text/input/grid/overflow-hidden-item-height-in-auto-row.html
Aliaksandr Kalenik 35cf4ad79f Tests/LibWeb: Add test for grid min-content height with overflow:hidden
This test verifies that a grid container with height: min-content
correctly sizes its rows when grid items have overflow: hidden.
2026-02-19 03:07:15 +01:00

23 lines
478 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<style>
.grid {
display: grid;
grid-template-columns: 200px 200px;
height: min-content;
}
.cell {
overflow: hidden;
}
</style>
<div class="grid">
<div class="cell" id="a"><div style="height:100px"></div></div>
<div class="cell"><div style="height:80px"></div></div>
</div>
<script>
test(() => {
const a = document.getElementById("a");
println(a.getBoundingClientRect().height);
});
</script>