Skip to content

Commit 88fe5be

Browse files
committed
[css-line-grid] snapping example clarifications
1 parent 18cc9fb commit 88fe5be

2 files changed

Lines changed: 28 additions & 24 deletions

File tree

css-line-grid/Overview.html

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
</p>
7777
<h1 class="p-name no-ref" id=title>CSS Line Grid Module Level 1</h1>
7878
<h2 class="no-num no-toc no-ref heading settled" id=subtitle><span class=content>Editor’s Draft,
79-
<span class=dt-updated><span class=value-title title=20140902>2 September 2014</span></span></span></h2>
79+
<span class=dt-updated><span class=value-title title=20140904>4 September 2014</span></span></span></h2>
8080
<div data-fill-with=spec-metadata><dl>
8181
<dt>This version:
8282
<dd><a class=u-url href=http://dev.w3.org/csswg/css-line-grid/>http://dev.w3.org/csswg/css-line-grid/</a>
@@ -493,20 +493,22 @@ <h3 class="heading settled" data-level=3.1 id=line-snap><span class=secno>3.1 </
493493
the block containing the elements is centered.
494494
In a centered situation,
495495
you have to align baselines
496-
while maintaining centering.</p>
496+
while maintaining centering.
497+
This can be done in two shift-and-center steps.</p>
497498

498-
<p>This can be done in two shift-and-center steps.
499-
First, shift the snapping lines
500-
as if there were no centering
501-
(as in figure 8 above),
499+
<p>First, shift the snapping lines
500+
as if the block was top-aligned
501+
(as in figure 9 above),
502502
then remove the shift
503-
for the very first snapping line
504-
and center the block.
505-
You can see the result
503+
for the very first snapping line.
504+
After removing the first shift,
505+
try centering the block.
506+
This is almost certain
507+
to throw the baseline alignment off.
508+
You can see one such result
506509
in the partial shifting figure below.</p>
507510

508-
<p>In the second step,
509-
measure the distance
511+
<p>Second, measure the distance
510512
from the first snapped line’s baseline
511513
to the grid lines above and below,
512514
looking for the closest grid line
@@ -560,8 +562,8 @@ <h3 class="heading settled" data-level=3.1 id=line-snap><span class=secno>3.1 </
560562
but is simpler than the centered case.</p>
561563

562564
<p>First, shift the snapping lines
563-
as if there were no centering
564-
(as in figure 8 above),
565+
as if there were no end-alignment
566+
(as in figure 9 above),
565567
then end-align the block.</p>
566568

567569
<p>Second, shift the entire block contents upwards

css-line-grid/Overview.src.html

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -399,20 +399,22 @@ <h3 id='line-snap'>
399399
the block containing the elements is centered.
400400
In a centered situation,
401401
you have to align baselines
402-
while maintaining centering.
403-
402+
while maintaining centering.
404403
This can be done in two shift-and-center steps.
404+
405405
First, shift the snapping lines
406-
as if there were no centering
407-
(as in figure 8 above),
406+
as if the block was top-aligned
407+
(as in figure 9 above),
408408
then remove the shift
409-
for the very first snapping line
410-
and center the block.
411-
You can see the result
409+
for the very first snapping line.
410+
After removing the first shift,
411+
try centering the block.
412+
This is almost certain
413+
to throw the baseline alignment off.
414+
You can see one such result
412415
in the partial shifting figure below.
413416

414-
In the second step,
415-
measure the distance
417+
Second, measure the distance
416418
from the first snapped line's baseline
417419
to the grid lines above and below,
418420
looking for the closest grid line
@@ -470,8 +472,8 @@ <h3 id='line-snap'>
470472
but is simpler than the centered case.
471473

472474
First, shift the snapping lines
473-
as if there were no centering
474-
(as in figure 8 above),
475+
as if there were no end-alignment
476+
(as in figure 9 above),
475477
then end-align the block.
476478

477479
Second, shift the entire block contents upwards

0 commit comments

Comments
 (0)