1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:58:12 +00:00

LibWeb: Initial offset in reverse flex layout moved to opposite side

This change moves the initial offset for justify-content: center to the
opposite side if the flex layout is in the reverse direction.
This commit is contained in:
Emil Militzer 2023-05-08 17:46:17 +02:00 committed by Andreas Kling
parent 6ae208dbf6
commit 8200d1f68b
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,11 @@
<!doctype html><style>
.flex {
display: flex;
flex-direction: row-reverse;
justify-content: center;
}
.flex > div {
width: 50px;
height: 50px;
}</style><body><div class="flex"><div style="background-color: red;">1</div><div style="background-color: blue;">2</div><div style="background-color: yellow;">3</div>