Files
ladybird/Tests/LibWeb/Text/input/grid/min-height-with-content-taller-than-min.html
Aliaksandr Kalenik 81a6bba86e LibWeb: Add regression test for grid min-height with taller content
A grid container with min-height: 50px and a 200px tall child should
resolve to 200px height, not be clamped to min-height.
2026-03-03 22:37:38 +00:00

19 lines
370 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<style>
#container {
display: grid;
grid-template-rows: minmax(0, 1fr);
min-height: 50px;
width: 200px;
}
</style>
<div id="container">
<div style="height: 200px;"></div>
</div>
<script>
test(() => {
println(document.getElementById("container").getBoundingClientRect().height);
});
</script>