1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:17:35 +00:00

LibWeb: Make align-items: normal behave like stretch on flex items

CSS-ALIGN-3 tells us that `normal` behavior inside flex containers is
simply to behave as `stretch` so this patch makes them behave the same
inside FFC.

Furthermore, we change the `align-items` initial value to `normal`,
matching other engines.
This commit is contained in:
Andreas Kling 2023-08-20 16:39:49 +02:00
parent d05be0d504
commit 90e95d38d7
4 changed files with 26 additions and 3 deletions

View file

@ -0,0 +1,12 @@
<!doctype html><style>
body {
display: flex;
flex-direction: column;
align-items: normal;
}
div {
width: 100px;
height: 100px;
background: orange;
}
</style><body><div></div>