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/tentative/grid/grid-gap-decorations-003.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>
CSS Gap Decorations: grid column gaps are painted with dotted styling.
</title>
<link rel="match" href="grid-gap-decorations-003-ref.html">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<style>
.grid-container {
height: 110px;
width: 110px;
background-color: green;
display: grid;
grid-template-columns: repeat(2, 1fr);
column-gap: 10px;
row-gap: 10px;
column-rule-color: pink;
column-rule-style: dotted;
column-rule-width: 10px;
}
.grid-item {
background: skyblue;
}
</style>
<div class="grid-container">
<div class="grid-item"></div>
<div class="grid-item"></div>
<div class="grid-item"></div>
<div class="grid-item"></div>
</div>