mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:07: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:
parent
d05be0d504
commit
90e95d38d7
4 changed files with 26 additions and 3 deletions
12
Tests/LibWeb/Layout/input/flex/align-items-normal.html
Normal file
12
Tests/LibWeb/Layout/input/flex/align-items-normal.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue