Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>
CSS Gap Decorations: Flex gap decoration colors with multiple values
track placement direction independently of writing direction, so a
reversed flex-direction combined with rtl composes correctly.
</title>
<link rel="match" href="flex-gap-decorations-multi-value-reverse-direction-interaction-ref.html">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
body {
margin: 0px;
}
.flex {
display: flex;
gap: 10px;
width: 230px;
column-rule-color: red, green, blue;
column-rule-style: solid;
column-rule-width: 10px;
margin-bottom: 20px;
}
.flex > * {
background: lightgray;
width: 50px;
height: 50px;
}
</style>
<div class="flex" style="flex-direction: row; direction: ltr;">
<div></div><div></div><div></div><div></div>
</div>
<div class="flex" style="flex-direction: row; direction: rtl;">
<div></div><div></div><div></div><div></div>
</div>
<div class="flex" style="flex-direction: row-reverse; direction: rtl;">
<div></div><div></div><div></div><div></div>
</div>