Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-gaps/flex/flex-gap-decorations-020.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>
CSS Gap Decorations: flex gaps are painted when container scrolls.
</title>
<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>