Skip to content

Commit 3715ba7

Browse files
committed
[css-line-grid] fix bottom example
1 parent f7f26ed commit 3715ba7

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

css-line-grid/Overview.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
rel=dcterms.rights>
1313
<meta content="CSS Line Grid Module Level 1" name=dcterms.title>
1414
<meta content=text name=dcterms.type>
15-
<meta content=2014-07-22 name=dcterms.date>
15+
<meta content=2014-07-23 name=dcterms.date>
1616
<meta content="Elika Etemad" name=dcterms.creator>
1717
<meta content="Koji Ishii" name=dcterms.creator>
1818
<meta content="Alan Stearns" name=dcterms.creator>
@@ -51,13 +51,13 @@
5151

5252
<h1>CSS Line Grid Module Level 1</h1>
5353

54-
<h2 class="no-num no-toc">Editor's Draft 22 July 2014</h2>
54+
<h2 class="no-num no-toc">Editor's Draft 23 July 2014</h2>
5555

5656
<dl>
5757
<dt>This version:
5858

5959
<dd><a href="http://dev.w3.org/csswg/css-line-grid-1/">
60-
http://www.w3.org/TR/2014/ED-css-line-grid-1-20140722/</a>
60+
http://www.w3.org/TR/2014/ED-css-line-grid-1-20140723/</a>
6161

6262
<dt>Latest version:
6363

@@ -606,11 +606,14 @@ <h3 id=line-snap><span class=secno>3.1. </span> Snapping Line Boxes: the
606606
</figcaption> </figure></div>
607607

608608
<div class=example>
609-
<p>An end-aligned block shifts snapped lines upward from the block-end
610-
direction. The shifting distance between any two adjacent snapped lines
611-
will be the same as in the other alignment cases. The main difference is
612-
that the shifting between snapped and not-snapped lines (or the block
613-
edge) occurs below the snapped lines.
609+
<p> An end-aligned block also uses two steps, but is simpler than the
610+
centered case.
611+
612+
<p> First, shift the snapping lines as if there were no centering (as in
613+
figure 8 above), then end-align the block.
614+
615+
<p> Second, shift the entire block contents upwards until the last snapped
616+
line aligns to a grid line. In this example, the shift is very minor.
614617
<figure style="float:left;"> <img alt="line positions before snapping"
615618
src="images/bottom-no-snap.png"> <figcaption> Before snapping
616619
</figcaption> </figure> <figure style="float:left;"> <img

css-line-grid/Overview.src.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,14 @@ <h3 id=line-snap>
457457

458458
<div class="example">
459459

460-
<p>An end-aligned block shifts snapped lines upward from the block-end direction. The shifting distance between any two adjacent snapped lines will be the same as in the other alignment cases. The main difference is that the shifting between snapped and not-snapped lines (or the block edge) occurs below the snapped lines.
460+
<p>
461+
An end-aligned block also uses two steps, but is simpler than the centered case.
462+
</p>
463+
<p>
464+
First, shift the snapping lines as if there were no centering (as in figure 8 above), then end-align the block.
465+
</p>
466+
<p>
467+
Second, shift the entire block contents upwards until the last snapped line aligns to a grid line. In this example, the shift is very minor.
461468
</p>
462469
<figure style="float:left;">
463470
<img src="images/bottom-no-snap.png"

css-line-grid/examples/positioned-blocks.html

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,22 @@
4141
line-height: 20px;
4242
}
4343

44-
.top .snap .one {
44+
.snap .one {
4545
margin-top: 15px;
4646
}
47-
.top .snap .two {
47+
.snap .two {
4848
margin-top: 10px;
4949
}
50-
.top .snap .three {
50+
.snap .three {
5151
margin-top: 10px;
5252
}
5353

54-
.bottom .snap .one {
55-
margin-bottom: 10px;
56-
}
57-
.bottom .snap .two {
58-
margin-bottom: 10px;
59-
}
6054
.bottom .snap .three {
6155
margin-bottom: 3px;
6256
}
6357

64-
.center .snap .two {
65-
margin-top: 10px;
58+
.center .snap .one {
59+
margin-top: 0px;
6660
}
6761
.center .snap .three {
6862
margin-top: 10px;
9.76 KB
Loading

0 commit comments

Comments
 (0)