-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathsubgrid-gap-decorations-fragmentation-018.html
More file actions
56 lines (56 loc) · 1.42 KB
/
subgrid-gap-decorations-fragmentation-018.html
File metadata and controls
56 lines (56 loc) · 1.42 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
<!DOCTYPE html>
<title>
Gap Decorations are shown in a grid that's fragmented. Suppressed row gaps do not
have decorations. Test scenario where the subgrid is empty and *rule-break is
normal.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="subgrid-gap-decorations-fragmentation-018-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: 80px;
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: normal;
row-rule-break: normal;
row-rule-inset: 0px;
}
.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;
}
.item {
background: purple;
}
</style>
<div class="multicol">
<div class="grid-container">
<div class="subgrid">
<div style="grid-row: -2; grid-column: 2/4; background: red;"></div>
</div>
</div>
</div>