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

LibWeb: Support start and end alignment values in flex layout

These should just behave the same as `flex-start` and `flex-end`.
This commit is contained in:
Andreas Kling 2023-06-06 16:54:46 +02:00
parent abd6380cce
commit 9e807d7c6a
4 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,28 @@
<!doctype html><style>
* {
border: 1px solid black;
}
.flex {
display: flex;
width: 500px;
background: pink;
}
.row {
flex-direction: row;
height: 200px;
}
.column {
flex-direction: column;
}
.flex > div {
background: orange;
}
.align-start {
align-items: start;
}
.align-end {
align-items: end;
}
</style>
<div class="flex row align-start"><div>align-items: start</div></div><div class="flex align-end"><div>align-items: end</div></div>
<div class="flex align-start"><div>align-items: start</div></div><div class="flex column align-end"><div>align-items: end</div></div>