1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:08:13 +00:00
serenity/Tests/LibWeb/Layout/input/grid/minmax-2.html
Aliaksandr Kalenik fb6b52b3fb LibWeb: Align GridFormattingContext::run_track_sizing() with the spec
1. Stop using -1 to indicate infinity value of growth limit. Just use
   INFINITY for that.
2. More complete implementation of "Expand Flexible Tracks" step.
3. Return AvailableSize from get_free_space: spec says that this
   function can return indefinite size and it is ok.
2023-05-09 06:37:30 +02:00

16 lines
No EOL
383 B
HTML

<style>
.container {
display: grid;
background-color: lightsalmon;
grid-template-columns: minmax(150px, 300px) minmax(150px, 300px);
grid-template-rows: minmax(25px, 50px) minmax(25px, 50px);
}
.one {
background-color: lightblue;
}
.two {
background-color: yellowgreen;
}
</style><div class="container"><div class="one">1</div><div class="two">2</div></div>