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/grid/fragmentation/grid-gap-decorations-fragmentation-015.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<!DOCTYPE html>
<title>
Gap Decorations are shown in grid that's fragmented. Suppressed row gaps
do not have decorations. Test scenario with a sparse grid and one empty track
exists in a fragmentainer due to a forced break.
</title>
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<link rel="match" href="grid-gap-decorations-fragmentation-015-ref.html">
<style>
body {
margin: 0px;
}
.multi-col {
height: 100px;
width: 320px;
columns: 3;
column-fill: auto;
column-gap: 10px;
background: lightgray;
}
.grid-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(13, 10px);
column-gap: 10px;
row-gap: 10px;
row-rule: solid 5px red;
column-rule: solid 6px blue;
background: teal;
}
.grid-container>div {
background-color: skyblue;
}
</style>
<div class="multi-col">
<div class="grid-container">
<div style="grid-row: 1/2;"></div>
<div style="grid-row: 12/13; break-before:column;"></div>
</div>
</div>