ladybird/Tests/LibWeb/Layout/input/grid/fit-content-3.html
Aliaksandr Kalenik 07aa25ce50 LibWeb: Clamp growth limit after adding planned increase in GFC
Fixes implementation of the following line from the spec:
"However, limit the growth of any fit-content() tracks by their
fit-content() argument."

Now we correctly apply a limit to increased growth limit rather than to
the planned increase.

Change in "Tests/LibWeb/Layout/input/grid/fit-content-2.html" is a
progression and "Item as wide as the content." is actually as wide as a
content.
2024-09-09 11:41:10 +02:00

27 lines
530 B
HTML

<!DOCTYPE html>
<style>
.container {
width: 200px;
margin-top: 10px;
}
.grid {
display: inline-grid;
background: blue;
}
.item {
background: orange;
}
.item::before,
.item::after {
content: "";
float: left;
width: 50px;
height: 50px;
border: 1px solid red;
}
</style>
<div class="container">
<div class="grid" style="grid-template-columns: fit-content(75%)">
<div class="item"></div>
</div>
</div>