1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:57: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:
Aliaksandr Kalenik 2023-10-23 17:54:37 +02:00 committed by Andreas Kling
parent db929e0fcf
commit 802b58d7e1
5 changed files with 59 additions and 0 deletions

View 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>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html><style type="text/css">
.app-privacy__cards {
display: grid;
}
.app-privacy__card {
height: 100px;
width: 0px;
min-width: 50%;
background-color: magenta;
}
</style><div class="app-privacy__cards"><div class="app-privacy__card"></div></div>