Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-writing-modes/sideways-lr-main-axis.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>sideways-lr flexbox main axis progresses in correct direction</title>
<link rel="match" href="reference/sideways-lr-main-axis-ref.html">
<style>
.container {
display: flex;
}
.item {
width: 20px;
height: 20px;
}
.item:nth-child(1) { background-color: lime; }
.item:nth-child(2) { background-color: limegreen; }
.item:nth-child(3) { background-color: green; }
</style>
<div class="container" style="writing-mode: sideways-lr; flex-direction: row;">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
<div class="container" style="writing-mode: sideways-lr; direction: rtl; flex-direction: row;">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
<div class="container" style="writing-mode: sideways-lr; flex-direction: row-reverse;">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
<div class="container" style="writing-mode: sideways-lr; direction: rtl; flex-direction: row-reverse;">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
<div class="container" style="writing-mode: sideways-lr; flex-direction: column;">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
<div class="container" style="writing-mode: sideways-lr; direction: rtl; flex-direction: column;">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
<div class="container" style="writing-mode: sideways-lr; flex-direction: column-reverse;">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
<div class="container" style="writing-mode: sideways-lr; direction: rtl; flex-direction: column-reverse;">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>