mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +00:00
LibWeb: Return grid container width from automatic_content_width in GFC
automatic_content_width() should return grid container width that is supposed to be set by determine_intrinsic_size_of_grid_container().
This commit is contained in:
parent
644e4f4c99
commit
d187862f76
3 changed files with 31 additions and 1 deletions
16
Tests/LibWeb/Layout/input/grid/intrinsic-sized-grid-2.html
Normal file
16
Tests/LibWeb/Layout/input/grid/intrinsic-sized-grid-2.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html><html><head><style>
|
||||
* {
|
||||
border: 1px solid black !important;
|
||||
}
|
||||
.grid {
|
||||
float: left;
|
||||
display: grid;
|
||||
grid-template-columns: min-content minmax(0, auto);
|
||||
}
|
||||
.whee {
|
||||
background: pink;
|
||||
}
|
||||
.yeehaw {
|
||||
background: lightskyblue;
|
||||
}
|
||||
</style></head><body><div class="grid"><div class="whee">whee</div><div class="yeehaw">yeehaw</div>
|
Loading…
Add table
Add a link
Reference in a new issue