mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
A grid container with min-height: 50px and a 200px tall child should resolve to 200px height, not be clamped to min-height.
19 lines
370 B
HTML
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>
|