mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
`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
17 lines
290 B
HTML
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>
|