-
Notifications
You must be signed in to change notification settings - Fork 791
Expand file tree
/
Copy pathsubgrid-example-1.html
More file actions
52 lines (47 loc) · 901 Bytes
/
subgrid-example-1.html
File metadata and controls
52 lines (47 loc) · 901 Bytes
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
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>Testcase for bug </title>
<style>
.grid {
display: inline-grid;
grid: auto auto 100px / masonry;
align-content: center;
height: 300px;
border: 1px solid;
}
.grid > * {
margin: 5px;
background: silver;
}
.grid > :nth-child(2n) {
background: pink;
}
.grid subgrid {
display: grid;
grid: subgrid / subgrid;
grid-row: 2 / span 2;
grid-gap: 30px;
}
.grid subgrid > * { background: cyan; }
</style>
<div class="grid">
<item>1</item>
<item>2</item>
<item>3</item>
<subgrid>
<item style="height:100px">subgrid.1</item>
<item>sub.2</item>
<item>s.3</item>
</subgrid>
<item>4</item>
<item>5</item>
<item style="width: 80px">6</item>
<item>7</item>
</div>
</body>
</html>