mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 09:57:00 +02:00
When a flex container with a reverse `flex-direction` is wrapped. Only each line should be reversed, not all items. (cherry picked from commit e2c1fe7255c84ad1ee172765ef9f107949117098)
26 lines
483 B
HTML
26 lines
483 B
HTML
<style>
|
|
body {
|
|
font-family: 'SerenitySans';
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
border: 1px solid salmon;
|
|
flex-direction: column-reverse;
|
|
height: 250px;
|
|
width: 250px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.box {
|
|
width: 100px;
|
|
height: 100px;
|
|
border: 1px solid black;
|
|
}
|
|
</style>
|
|
<div class="container column">
|
|
<div class="box">1</div>
|
|
<div class="box">2</div>
|
|
<div class="box">3</div>
|
|
</div>
|