Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>
CSS Gap Decorations: in a fragmented multicol container, a
repeat(auto, ...) row-rule pattern with two distinguishable repeated
values keeps the correct cycling position across a row gap suppressed at
an outer fragmentainer boundary.
</title>
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<link rel="match" href="multicol-gap-decorations-fragmentation-002-ref.html">
<style>
body {
margin: 0px;
}
.outer {
columns: 2;
column-fill: auto;
column-gap: 40px;
width: 240px;
height: 160px;
background: lightgray;
}
.inner {
column-count: 1;
column-width: 100px;
column-height: 40px;
column-wrap: wrap;
row-gap: 20px;
row-rule-width: 10px;
row-rule-style: solid;
row-rule-color: red, repeat(auto, green, yellow), blue;
}
.inner > div {
height: 40px;
background: rgba(0, 0, 0, 0.15);
}
</style>
<div class="outer">
<div class="inner">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>