Files
ladybird/Tests/LibWeb/Layout/input/grid/fit-content-row-with-overflow-hidden.html
Aliaksandr Kalenik ced5dc51c4 LibWeb: Fix fit-content() row clamping with indefinite available height
`grid-template-rows: fit-content(100px)` had no effect when the grid
container lacked an explicit height, because the fit-content growth
limit clamping was gated behind `available_size.is_definite()`.

Fix by normalizing fit-content tracks with unresolvable percentage
arguments to max-content during track initialization, then applying
the fit-content clamp unconditionally.

Fixes https://github.com/LadybirdBrowser/ladybird/issues/7730
2026-02-02 20:33:05 +01:00

17 lines
290 B
HTML

<!DOCTYPE html>
<style>
.grid {
display: grid;
grid-template-rows: fit-content(100px);
}
.wrapper {
overflow: hidden;
}
.inner {
background: orange;
width: 200px;
height: 200px;
}
</style>
<div class="grid"><div class="wrapper"><div class="inner"></div></div></div>