LibWeb: Only reverse each line of a reverse flex-direction

When a flex container with a reverse `flex-direction` is wrapped. Only
each line should be reversed, not all items.
This commit is contained in:
BenJilks 2024-09-02 13:01:18 +01:00 committed by Andreas Kling
commit e2c1fe7255
Notes: github-actions[bot] 2024-09-02 15:43:09 +00:00
5 changed files with 139 additions and 10 deletions

View file

@ -0,0 +1,24 @@
<style>
body {
font-family: 'SerenitySans';
}
.container {
display: flex;
border: 1px solid salmon;
width: 250px;
flex-direction: row-reverse;
flex-wrap: wrap;
}
.box {
width: 100px;
height: 100px;
border: 1px solid black;
}
</style>
<div class="container">
<div class="box">1</div>
<div class="box">2</div>
<div class="box">3</div>
</div>