Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>
CSS Gap Decorations: flex gaps are painted when container scrolls.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="flex-gap-decorations-020-ref.html">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
body {
margin: 0px;
}
.flex-container {
position: absolute;
top: 0;
left: 0;
height: 110px;
width: 110px;
display: flex;
column-gap: 10px;
row-gap: 10px;
column-rule-color: blue;
column-rule-style: solid;
column-rule-width: 10px;
row-rule-color: gold;
row-rule-style: solid;
row-rule-width: 10px;
flex-wrap: wrap;
}
.flex-item {
background: skyblue;
width: 50px;
}
.overflow {
position: absolute;
top: 0;
left: 0;
overflow: scroll;
height: 80px;
width: 80px;
}
</style>
<div class="overflow">
<div class="flex-container">
<div class="flex-item"></div>
<div class="flex-item"></div>
<div class="flex-item"></div>
<div class="flex-item"></div>
</div>
</div>