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-043.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>
CSS Gap Decorations: Flex gaps are painted with different sized gaps per column due to content distribution in a column flex.
</title>
<link rel="help" href="https://www.w3.org/TR/css-gaps-1/">
<link rel="match" href="flex-gap-decorations-043-ref.html">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
body {
margin: 0px;
}
#flexbox {
height: 400px;
border: 2px solid #333;
background-color: #fff;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: space-between;
row-rule: 5px solid gold;
width: 100px;
}
.item {
width: 50px;
height: 70px;
background-color: #007bff;
color: white;
display: flex;
}
</style>
<div id="flexbox">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>