mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-06 17:11:51 +00:00
Reverse the order of flex lines, when the `flex-wrap` property is set to `wrap-reverse`. This will also swap the cross-start and cross-end directions.
47 lines
845 B
HTML
47 lines
845 B
HTML
<style>
|
|
.row, .column {
|
|
display: flex;
|
|
border: 1px solid salmon;
|
|
width: 250px;
|
|
height: 250px;
|
|
flex-wrap: wrap-reverse;
|
|
}
|
|
|
|
.column {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.start {
|
|
align-items: start;
|
|
}
|
|
|
|
.box {
|
|
width: 100px;
|
|
height: 100px;
|
|
border: 1px solid black;
|
|
}
|
|
</style>
|
|
|
|
<div class="row">
|
|
<div class="box">1</div>
|
|
<div class="box">2</div>
|
|
<div class="box">3</div>
|
|
</div>
|
|
|
|
<div class="column">
|
|
<div class="box">1</div>
|
|
<div class="box">2</div>
|
|
<div class="box">3</div>
|
|
</div>
|
|
|
|
<div class="row start">
|
|
<div class="box">1</div>
|
|
<div class="box">2</div>
|
|
<div class="box">3</div>
|
|
</div>
|
|
|
|
<div class="column start">
|
|
<div class="box">1</div>
|
|
<div class="box">2</div>
|
|
<div class="box">3</div>
|
|
</div>
|