1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

LibWeb: Treat flex item's cyclic percentage cross size as auto

This fixes an issue where e.g `height: 100%` on a flex item whose
container has indefinite height was being resolved to 0. It now
correctly behaves the same as auto.
This commit is contained in:
Andreas Kling 2023-03-18 00:24:51 +01:00
parent 062b8e5957
commit 1dc074fc18
3 changed files with 25 additions and 1 deletions

View file

@ -0,0 +1,14 @@
<!DOCTYPE html><html><head><style>
* {
border: 1px solid black;
font: 16px 'SerenitySans';
}
.project {
display: flex;
flex-direction: column;
height: 100%;
}
.flexrow {
display: flex;
}
</style></head><body><div class="flexrow"><div class="project">pillow