Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<title>
CSS Gap Decorations: column and row gaps are painted.
</title>
<link rel="match" href="../../../reference/ref-filled-green-100px-square.xht">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
.flex-container {
display: flex;
column-gap: 10px;
row-gap: 10px;
height: 100px;
width: 100px;
background: red;
column-rule-color: green;
column-rule-style: solid;
column-rule-width: 10px;
row-rule-color: green;
row-rule-style: solid;
row-rule-width: 10px;
flex-wrap: wrap;
}
.flex-item {
background: green;
width: 45px;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="flex-container">
<div class="flex-item"></div>
<div class="flex-item"></div>
<div class="flex-item"></div>
<div class="flex-item"></div>
</div>