-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathsubgrid-gap-decorations-fragmentation-013.html
More file actions
68 lines (68 loc) · 1.71 KB
/
subgrid-gap-decorations-fragmentation-013.html
File metadata and controls
68 lines (68 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<title>
Gap Decorations are shown in a grid that's fragmented. Suppressed row gaps do not
have decorations. Test scenario with two nested subgrids and all row gaps are suppressed.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="subgrid-gap-decorations-fragmentation-013-ref.html">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<style>
body {
margin: 0px;
}
.multicol {
position: relative;
columns: 2;
column-fill: auto;
width: 280px;
height: 20px;
background: yellow;
column-gap: 0px;
}
.grid-container {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(5, 1fr);
background: lightgray;
gap: 10px;
height: 140px;
column-rule: skyblue solid 10px;
row-rule: cornflowerblue solid 10px;
column-rule-break: none;
row-rule-break: none;
}
.subgrid {
display: grid;
grid-template-columns: subgrid;
grid-template-rows: subgrid;
background: orange;
grid-column: 2 / -2;
grid-row: 2 / -2;
column-rule: white solid 10px;
row-rule: blue solid 10px;
}
.inner-subgrid {
display: grid;
grid-template-columns: subgrid;
grid-template-rows: subgrid;
grid-column: 2 / -1;
grid-row: 2/ -1;
column-rule: red solid 10px;
row-rule: blue solid 10px;
}
.item {
background: purple;
}
</style>
<div class="multicol">
<div class="grid-container">
<div class="subgrid">
<div class="inner-subgrid">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
</div>
</div>
</div>