Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>
CSS Gap Decorations: gap decorations are painted in inline flex containers.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="flex-gap-decorations-039-ref.html">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<style>
body {
margin: 0px;
}
.container {
gap: 10px;
row-rule: 2px solid red;
column-rule: 2px solid blue;
}
.flex {
display: inline-flex;
flex-wrap: wrap;
width: 110px;
}
.item {
background: lightgray;
width: 50px;
height: 50px;
}
</style>
<div class="flex container">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>