Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>
CSS Gap Decorations: column flex gaps are painted when container is fragmented and an item in line is monolithic.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="flex-gap-decorations-fragmentation-014-ref.html">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
.multi-column {
columns: 3;
height: 47px;
column-width: 110px;
width: 330px;
column-fill: auto;
}
body {
margin: 0px;
}
#flexbox {
display: flex;
column-gap: 10px;
row-gap: 10px;
width: 110px;
flex-wrap: wrap;
height: 110px;
column-rule: 10px solid blue;
flex-direction: column;
}
.items {
background-color: rgb(96 139 168 / 0.2);
width: 50px;
height: 50px;
}
#monolithic {
contain: size;
}
</style>
<div class="multi-column">
<div id="flexbox">
<div class="items" id="monolithic">One</div>
<div class="items" >Two</div>
<div class="items">Three</div>
<div class="items">Four</div>
</div>
</div>