mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +00:00
LibWeb: Resolve grid item's min-width and max-width in GFC
Now min-width and max-width properties affect resulting width of grid item instead of being ignored.
This commit is contained in:
parent
db929e0fcf
commit
802b58d7e1
5 changed files with 59 additions and 0 deletions
11
Tests/LibWeb/Layout/input/grid/item-max-width.html
Normal file
11
Tests/LibWeb/Layout/input/grid/item-max-width.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html><style type="text/css">
|
||||
.app-privacy__cards {
|
||||
display: grid;
|
||||
}
|
||||
.app-privacy__card {
|
||||
height: 100px;
|
||||
width: 100%;
|
||||
max-width: 50%;
|
||||
background-color: magenta;
|
||||
}
|
||||
</style><div class="app-privacy__cards"><div class="app-privacy__card"></div></div>
|
Loading…
Add table
Add a link
Reference in a new issue