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-031.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>
CSS Gap Decorations: flex gaps are painted when the container is fragmented, and we have rule-break intersection.
</title>
<link rel="match" href="flex-gap-decorations-031-ref.html">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
.multi-column {
columns: 3;
height: 47px;
column-width: 170px;
width: 510px;
}
body {
margin: 0px;
}
#flexbox {
border: 2px solid rgb(96 139 168);
display: flex;
column-gap: 10px;
row-gap: 10px;
row-rule-style: solid;
row-rule-color: blue;
row-rule-width: 10px;
column-rule-style: solid;
column-rule-color: red;
column-rule-width: 10px;
column-rule-break: intersection;
column-rule-outset: -1px;
width: 170px;
flex-wrap: wrap;
}
.items {
background-color: rgb(96 139 168 / 0.2);
flex-shrink: 1;
width: 50px;
height: 50px;
}
#four {
width: 100px;
}
</style>
<div class="multi-column">
<div id="flexbox">
<div class="items">One</div>
<div class="items">Two</div>
<div class="items">Three</div>
<div class="items" id="four">Four</div>
<div class="items">Five</div>
</div>
</div>