blob: dd589f90c5ffa06f9353d1dfaa4befa707dbc0b4 (
plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
|
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>Reference: Placement involving named lines</title>
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
<style>
body,html { color:black; background:white; font:15px/1 monospace; padding:0; margin:0; }
.grid {
display: grid;
grid-template-columns: 40px 40px 40px 60px 60px 60px 40px 40px 40px 40px 40px 40px 40px;
position: relative;
border: 1px solid;
grid-auto-flow: dense;
column-gap: 1px;
}
x {
background: grey;
}
y {
position: absolute;
border: 1px solid blue;
top:0;height:0;left:0;right:0;
grid-row-end:span 1!important;
}
</style>
</head>
<body>
<pre>grid-column: / span A-start 2</pre>
<div class="grid">
<x style="grid-row:1; grid-column:4"> </x>
<x style="grid-row:1; grid-column:7/span 2;">-1</x>
<x style="grid-row:2; grid-column:7/span 2;">4</x>
<x style="grid-row:4; grid-column:6/span 3;">-2</x>
<x style="grid-row:5; grid-column:5/span 4;">-3</x>
<x style="grid-row:6; grid-column:4/span 4;">-4</x>
<x style="grid-row:7; grid-column:3/span 2;">-5</x>
<x style="grid-row:7; grid-column:5/span 4;">A -1</x>
<x style="grid-row:9; grid-column:3/span 2;">B -1</x>
<x style="grid-row:10; grid-column:4/span 4;">A -2</x>
<x style="grid-row:11; grid-column:3/span 2;">A -3</x>
<x style="grid-row:12; grid-column:2/span 3;">A -4</x>
<x style="grid-row:13; grid-column:1/span 4;">A -5</x>
<x style="grid-row:14; grid-column:4/span 4;">A</x>
<x style="grid-row:15; grid-column:4/span 4;">B</x>
<x style="grid-row:16; grid-column:4/span 4;">A 1</x>
<x style="grid-row:17; grid-column:5/span 4;">A 2</x>
<x style="grid-row:18; grid-column:8/span 2;">A 3</x>
<x style="grid-row:1; grid-column:9/span 2;">A 4</x>
<x style="grid-row:2; grid-column:10/span 2;">A 5</x>
<y style="grid-row:1; grid-column:7/span 2;"></y>
<y style="grid-row:2; grid-column:7/span 2;"></y>
<y style="grid-row:4; grid-column:6/span 3;"></y>
<y style="grid-row:5; grid-column:5/span 4;"></y>
<y style="grid-row:6; grid-column:4/span 4;"></y>
<y style="grid-row:7; grid-column:3/span 2;"></y>
<y style="grid-row:7; grid-column:5/span 4;"></y>
<y style="grid-row:9; grid-column:3/span 2;"></y>
<y style="grid-row:10; grid-column:4/span 4;"></y>
<y style="grid-row:11; grid-column:3/span 2;"></y>
<y style="grid-row:12; grid-column:2/span 3;"></y>
<y style="grid-row:13; grid-column:1/span 4;"></y>
<y style="grid-row:14; grid-column:4/span 4;"></y>
<y style="grid-row:15; grid-column:4/span 4;"></y>
<y style="grid-row:16; grid-column:4/span 4;"></y>
<y style="grid-row:17; grid-column:5/span 4;"></y>
<y style="grid-row:18; grid-column:8/span 2;"></y>
<y style="grid-row:1; grid-column:9/span 2;"></y>
<y style="grid-row:2; grid-column:10/span 2;"></y>
</div>
</body>
</html>
|