Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>
CSS Gap Decorations: Flex gap decorations with non-default writing-mode values.
</title>
<link rel="match" href="flex-gap-decorations-writing-mode-ref.html">
<link rel="author" title="Kevin Babbitt" href="mailto:kbabbitt@microsoft.com">
<style>
body {
margin: 0px;
}
.flex {
display: flex;
flex-wrap: wrap;
column-gap: 10px;
row-gap: 10px;
column-rule: 10px solid blue;
row-rule: 10px solid red;
width: 110px;
height: 170px;
margin-bottom: 20px;
}
.flex > * {
background: lightgray;
width: 50px;
height: 50px;
}
.flex > :first-child {
background: salmon;
}
</style>
<div class="flex" style="writing-mode: vertical-rl;">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="flex" style="writing-mode: vertical-lr;">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="flex" style="writing-mode: sideways-rl;">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="flex" style="writing-mode: sideways-lr;">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>