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/fragmentation/flex-gap-decorations-fragmentation-012.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>
CSS Gap Decorations: row flex gaps are painted when container is fragmented and an item in line is monolithic.
</title>
<link rel="match" href="flex-gap-decorations-fragmentation-012-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;
row-rule: 10px solid gold;
}
.items {
background-color: rgb(96 139 168 / 0.2);
width: 50px;
height: 55px;
}
#monolithic {
contain: size;
}
</style>
<div class="multi-column">
<div id="flexbox">
<div class="items">One</div>
<div class="items" id="monolithic">Two</div>
<div class="items">Three</div>
<div class="items">Four</div>
</div>
</div>