mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:07:34 +00:00
LibWeb: Align with spec "stretch auto tracks" step in GFC
Now, we will evenly distribute the remaining free space across tracks using the auto max-tracks sizing function, exactly as the specification states. Many tests are affected, but they are not visually broken. Fixes https://github.com/SerenityOS/serenity/issues/22798
This commit is contained in:
parent
dd9f3c980f
commit
9e23503c9c
21 changed files with 233 additions and 207 deletions
19
Tests/LibWeb/Layout/input/grid/stretch-auto-tracks.html
Normal file
19
Tests/LibWeb/Layout/input/grid/stretch-auto-tracks.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html><style>
|
||||
* {
|
||||
outline: 1px solid black;
|
||||
}
|
||||
body {
|
||||
display: grid;
|
||||
}
|
||||
section {
|
||||
display: grid;
|
||||
background: pink;
|
||||
}
|
||||
#one {
|
||||
background: green;
|
||||
}
|
||||
#two {
|
||||
height: 100px;
|
||||
background: orange;
|
||||
}
|
||||
</style><body><section><div id="one"></div><div id="two"></div>
|
Loading…
Add table
Add a link
Reference in a new issue