1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 21:45:07 +00:00
serenity/Tests/LibWeb/Layout/input/flex/reverse-with-justify-content-normal.html
Andreas Kling aa245f9f18 LibWeb: Fix reverse flex layout with justify-content: normal
Before this change, we used the wrong insertion point for flex items
in reverse layouts with `justify-content: normal`. This caused flex
items to overflow the flex containers "backwards" from the start edge.
2024-01-08 14:42:19 +01:00

23 lines
No EOL
558 B
HTML

<!DOCTYPE html><style type="text/css">
* {
outline: 1px solid black;
}
.row {
flex-direction: row-reverse;
}
.column {
flex-direction: column-reverse;
}
.flex {
display: flex;
width: 200px;
height: 200px;
background: pink;
justify-content: normal;
}
.item {
width: 100px;
height: 100px;
background: orange;
}
</style><body><div class="flex row"><div class="item"></div></div><div class="flex column"><div class="item"></div></div>