mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 00:19:18 +00:00
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.
27 lines
530 B
HTML
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>
|