Skip to content

Commit efc2bfe

Browse files
committed
[css-grid-2] Fix errors in subgrid gap examples, add image for normal. p=Dan503 #2285 (comment)
1 parent 270a221 commit efc2bfe

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

css-grid-2/Overview.bs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Characteristics of a Subgrid Item</h3>
265265
A subgrid spanning both tracks would have&hellip;
266266

267267
<dl>
268-
<dt>&hellip; if its 'column-gap' were ''column-gap/normal'':
268+
<dt>&hellip; if its 'column-gap' were ''column-gap/normal'' (or ''50px''):
269269
<dd>
270270
<ul>
271271
<li>A grid item in its left column
@@ -279,13 +279,15 @@ Characteristics of a Subgrid Item</h3>
279279
sized and laid out
280280
(and contributing its size to the parent grid’s sizing calculations)
281281
without any special adjustment,
282-
thus stretching to 175px wide,
282+
thus stretching to 150px wide,
283283
while remaining aligned
284284
to the subgrid’s right edge.
285285
<li>An effective visual <a>gutter</a> between the items
286286
of 50px, exactly matching its parent grid.
287287
</ul>
288288

289+
<img src="images/subgrid-gap-normal.png" alt="">
290+
289291
<dt>&hellip; if its 'column-gap' were ''0'':
290292
<dd>
291293
<ul>
@@ -338,14 +340,14 @@ Characteristics of a Subgrid Item</h3>
338340
<li>A grid item in its left column
339341
sized and laid out
340342
(and contributing its size to the parent grid’s sizing calculations)
341-
as if it had a -37.5px right margin,
343+
as if it had a 12.5px right margin,
342344
thus stretching to 87.5px wide
343345
while remaining aligned
344346
to the subgrid’s left edge.
345347
<li>A grid item in its right column
346348
sized and laid out
347349
(and contributing its size to the parent grid’s sizing calculations)
348-
as if it had a -37.5px left margin,
350+
as if it had a 12.5px left margin,
349351
thus stretching to 137.5px wide,
350352
while remaining aligned
351353
to the subgrid’s right edge.
9.73 KB
Loading

0 commit comments

Comments
 (0)