3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
8 <title>CSS Grid Test: Placement involving named lines
</title>
9 <link rel=
"author" title=
"Mats Palmgren" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1226697">
10 <link rel=
"help" href=
"https://drafts.csswg.org/css-grid/#grid-placement-int">
11 <link rel=
"match" href=
"grid-placement-named-lines-002-ref.html">
12 <style type=
"text/css">
13 body
,html
{ color:black
; background:white
; font-size:12px; padding:0; margin:0; }
19 grid-template-columns: [A-start
] 60px [A-start
] 60px 60px;
20 grid-template-areas: "B . . . A";
21 grid-auto-columns: 40px;
32 border: 1px solid blue
;
33 bottom:0;height:0;left:0;right:0;
34 grid-row-end:span
1!important
;
46 grid-template-columns: [A-start]
60px [A-start]
60px
60px;
47 grid-template-areas:
"B . . . A";
48 grid-auto-columns:
40px;
52 <pre>grid-column-start:
</pre>
53 <div class=
"grid" style=
"padding-right:13px; border-right-width:5px">
54 <x style=
"grid-row:1; grid-column:1; background:grey"></x>
55 <x style=
"grid-row:2; grid-column-start:-1">-
1</x>
56 <x style=
"grid-row:3; grid-column-start:4">4</x>
57 <x style=
"grid-row:3; grid-column-start:-2">-
2</x>
58 <x style=
"grid-row:3; grid-column-start:-3">-
3</x>
59 <x style=
"grid-row:3; grid-column-start:-4">-
4</x>
60 <x style=
"grid-row:3; grid-column-start:-5">-
5</x>
61 <x style=
"grid-row:4; grid-column-start:A-start -1">A -
1</x>
62 <x style=
"grid-row:4; grid-column-start:B -1">B -
1</x>
63 <x style=
"grid-row:5; grid-column-start:A-start -2">A -
2</x>
64 <x style=
"grid-row:6; grid-column-start:A-start -3">A -
3</x>
65 <x style=
"grid-row:6; grid-column-start:A-start -4">A -
4</x>
66 <x style=
"grid-row:6; grid-column-start:A-start -5">A -
5</x>
67 <x style=
"grid-row:7; grid-column-start:A-start">A
</x>
68 <x style=
"grid-row:7; grid-column-start:B">B
</x>
69 <x style=
"grid-row:8; grid-column-start:A-start 1">A
1</x>
70 <x style=
"grid-row:8; grid-column-start:A-start 2">A
2</x>
71 <x style=
"grid-row:8; grid-column-start:A-start 3">A
3</x>
72 <x style=
"grid-row:8; grid-column-start:A-start 4">A
4</x>
73 <x style=
"grid-row:8; grid-column-start:A-start 5">A
5</x>
74 <y style=
"grid-row:2; grid-column-start:-1"></y>
75 <y style=
"grid-row:3; grid-column-start:4"></y>
76 <y style=
"grid-row:3; grid-column-start:-2" class=
"a2"></y>
77 <y style=
"grid-row:3; grid-column-start:-3" class=
"a3"></y>
78 <y style=
"grid-row:3; grid-column-start:-4" class=
"a4"></y>
79 <y style=
"grid-row:3; grid-column-start:-5" class=
"a5"></y>
80 <y style=
"grid-row:4; grid-column-start:A-start -1"></y>
81 <y style=
"grid-row:4; grid-column-start:B -1" class=
"a2"></y>
82 <y style=
"grid-row:5; grid-column-start:A-start -2"></y>
83 <y style=
"grid-row:6; grid-column-start:A-start -3"></y>
84 <y style=
"grid-row:6; grid-column-start:A-start -4" class=
"a2"></y>
85 <y style=
"grid-row:6; grid-column-start:A-start -5" class=
"a3"></y>
86 <y style=
"grid-row:7; grid-column-start:A-start"></y>
87 <y style=
"grid-row:7; grid-column-start:B" class=
"a2"></y>
88 <y style=
"grid-row:8; grid-column-start:A-start 1"></y>
89 <y style=
"grid-row:8; grid-column-start:A-start 2" class=
"a2"></y>
90 <y style=
"grid-row:8; grid-column-start:A-start 3" class=
"a3"></y>
91 <y style=
"grid-row:8; grid-column-start:A-start 4" class=
"a4"></y>
92 <y style=
"grid-row:8; grid-column-start:A-start 5" class=
"a5"></y>
95 <pre>grid-column-end:
</pre>
96 <div class=
"grid" style=
"padding-left:13px;">
97 <x style=
"grid-row:1; grid-column:1; background:grey"></x>
98 <x style=
"grid-row:2; grid-column-end:-1">-
1</x>
99 <x style=
"grid-row:3; grid-column-end:4">4</x>
100 <x style=
"grid-row:3; grid-column-end:-5">-
5</x>
101 <x style=
"grid-row:3; grid-column-end:-4">-
4</x>
102 <x style=
"grid-row:3; grid-column-end:-3">-
3</x>
103 <x style=
"grid-row:3; grid-column-end:-2">-
2</x>
104 <x style=
"grid-row:4; grid-column-end:A-start -1">A -
1</x>
105 <x style=
"grid-row:4; grid-column-end:B -1">B -
1</x>
106 <x style=
"grid-row:5; grid-column-end:A-start -2">A -
2</x>
107 <x style=
"grid-row:6; grid-column-end:A-start -3">A -
3</x>
108 <x style=
"grid-row:6; grid-column-end:A-start -4">A -
4</x>
109 <x style=
"grid-row:6; grid-column-end:A-start -5">A -
5</x>
110 <x style=
"grid-row:7; grid-column-end:A-start">A
</x>
111 <x style=
"grid-row:7; grid-column-end:B">B
</x>
112 <x style=
"grid-row:8; grid-column-end:A-start 1">A
1</x>
113 <x style=
"grid-row:8; grid-column-end:A-start 2">A
2</x>
114 <x style=
"grid-row:8; grid-column-end:A-start 3">A
3</x>
115 <x style=
"grid-row:8; grid-column-end:A-start 4">A
4</x>
116 <x style=
"grid-row:8; grid-column-end:A-start 5">A
5</x>
117 <y style=
"grid-row:2; grid-column-end:-1"></y>
118 <y style=
"grid-row:3; grid-column-end:4"></y>
119 <y style=
"grid-row:3; grid-column-end:-5" class=
"a2"></y>
120 <y style=
"grid-row:3; grid-column-end:-4" class=
"a3"></y>
121 <y style=
"grid-row:3; grid-column-end:-3" class=
"a4"></y>
122 <y style=
"grid-row:3; grid-column-end:-2" class=
"a5"></y>
123 <y style=
"grid-row:4; grid-column-end:A-start -1"></y>
124 <y style=
"grid-row:4; grid-column-end:B -1" class=
"a2"></y>
125 <y style=
"grid-row:5; grid-column-end:A-start -2"></y>
126 <y style=
"grid-row:6; grid-column-end:A-start -3"></y>
127 <y style=
"grid-row:6; grid-column-end:A-start -4" class=
"a2"></y>
128 <y style=
"grid-row:6; grid-column-end:A-start -5" class=
"a3"></y>
129 <y style=
"grid-row:7; grid-column-end:A-start"></y>
130 <y style=
"grid-row:7; grid-column-end:B" class=
"a2"></y>
131 <y style=
"grid-row:8; grid-column-end:A-start 1"></y>
132 <y style=
"grid-row:8; grid-column-end:A-start 2" class=
"a2"></y>
133 <y style=
"grid-row:8; grid-column-end:A-start 3" class=
"a3"></y>
134 <y style=
"grid-row:8; grid-column-end:A-start 4" class=
"a4"></y>
135 <y style=
"grid-row:8; grid-column-end:A-start 5" class=
"a5"></y>
138 <pre>grid-column: / span A-start
2</pre>
140 <x style=
"grid-row:1; grid-column:1; background:grey"></x>
141 <x style=
"grid-row:2; grid-column:-1/span A-start 2">-
1</x>
142 <x style=
"grid-row:3; grid-column:4/span A-start 2">4</x>
143 <x style=
"grid-row:4; grid-column:-2/span A-start 2">-
2</x>
144 <x style=
"grid-row:5; grid-column:-3/span A-start 2">-
3</x>
145 <x style=
"grid-row:6; grid-column:-4/span A-start 2">-
4</x>
146 <x style=
"grid-row:7; grid-column:-5/span A-start 2">-
5</x>
147 <x style=
"grid-row:8; grid-column:A-start -1/span A-start 2">A -
1</x>
148 <x style=
"grid-row:9; grid-column:B -1/span A-start 2">B -
1</x>
149 <x style=
"grid-row:10; grid-column:A-start -2/span A-start 2">A -
2</x>
150 <x style=
"grid-row:11; grid-column:A-start -3/span A-start 2">A -
3</x>
151 <x style=
"grid-row:12; grid-column:A-start -4/span A-start 2">A -
4</x>
152 <x style=
"grid-row:13; grid-column:A-start -5/span A-start 2">A -
5</x>
153 <x style=
"grid-row:14; grid-column:A-start/span A-start 2">A
</x>
154 <x style=
"grid-row:15; grid-column:B/span B">B
</x>
155 <x style=
"grid-row:16; grid-column:A-start 1/span A-start 2">A
1</x>
156 <x style=
"grid-row:17; grid-column:A-start 2/span A-start 2">A
2</x>
157 <x style=
"grid-row:18; grid-column:A-start 3/span A-start 2">A
3</x>
158 <x style=
"grid-row:19; grid-column:A-start 4/span A-start 2">A
4</x>
159 <x style=
"grid-row:20; grid-column:A-start 5/span A-start 2">A
5</x>
160 <y style=
"grid-row:2; grid-column:-1/span A-start 2"></y>
161 <y style=
"grid-row:3; grid-column:4/span A-start 2"></y>
162 <y style=
"grid-row:4; grid-column:-2/span A-start 2"></y>
163 <y style=
"grid-row:5; grid-column:-3/span A-start 2"></y>
164 <y style=
"grid-row:6; grid-column:-4/span A-start 2"></y>
165 <y style=
"grid-row:7; grid-column:-5/span A-start 2"></y>
166 <y style=
"grid-row:8; grid-column:A-start -1/span A-start 2"></y>
167 <y style=
"grid-row:9; grid-column:B -1/span A-start 2"></y>
168 <y style=
"grid-row:10; grid-column:A-start -2/span A-start 2"></y>
169 <y style=
"grid-row:11; grid-column:A-start -3/span A-start 2"></y>
170 <y style=
"grid-row:12; grid-column:A-start -4/span A-start 2"></y>
171 <y style=
"grid-row:13; grid-column:A-start -5/span A-start 2"></y>
172 <y style=
"grid-row:14; grid-column:A-start/span A-start 2"></y>
173 <y style=
"grid-row:15; grid-column:B/span B"></y>
174 <y style=
"grid-row:16; grid-column:A-start 1/span A-start 2"></y>
175 <y style=
"grid-row:17; grid-column:A-start 2/span A-start 2"></y>
176 <y style=
"grid-row:18; grid-column:A-start 3/span A-start 2"></y>
177 <y style=
"grid-row:19; grid-column:A-start 4/span A-start 2"></y>
178 <y style=
"grid-row:20; grid-column:A-start 5/span A-start 2"></y>