Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>
CSS Gap Decorations: Grid with 2x2 item, decorations are not painted within item when *-rule-break is spanning-item.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="grid-gap-decorations-009-ref.html">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<style>
body {
margin: 0px;
}
.grid-container {
display: grid;
gap: 10px;
grid-template-columns: 100px 100px 100px;
height: 320px;
column-rule-color: blue;
column-rule-style: solid;
column-rule-width: 5px;
row-rule-color: red;
row-rule-style: solid;
row-rule-width: 5px;
}
.item {
background: gray;
opacity: 0.5;
}
</style>
<div class="grid-container">
<div class="item" style="grid-column: 1 / 3; grid-row: 1 / 2;"></div>
<div class="item" style=" grid-column: 3 / 4;"></div>
<div class="item"></div>
<div class="item" style="grid-column: 2 / 4; grid-row: 2 / 4;"></div>
<div class="item"></div>
</div>