|
12 | 12 | rel=dcterms.rights> |
13 | 13 | <meta content="CSS Line Grid Module Level 1" name=dcterms.title> |
14 | 14 | <meta content=text name=dcterms.type> |
15 | | - <meta content=2014-07-21 name=dcterms.date> |
| 15 | + <meta content=2014-07-22 name=dcterms.date> |
16 | 16 | <meta content="Elika Etemad" name=dcterms.creator> |
17 | 17 | <meta content="Koji Ishii" name=dcterms.creator> |
18 | 18 | <meta content="Alan Stearns" name=dcterms.creator> |
|
51 | 51 |
|
52 | 52 | <h1>CSS Line Grid Module Level 1</h1> |
53 | 53 |
|
54 | | - <h2 class="no-num no-toc">Editor's Draft 21 July 2014</h2> |
| 54 | + <h2 class="no-num no-toc">Editor's Draft 22 July 2014</h2> |
55 | 55 |
|
56 | 56 | <dl> |
57 | 57 | <dt>This version: |
58 | 58 |
|
59 | 59 | <dd><a href="http://dev.w3.org/csswg/css-line-grid-1/"> |
60 | | - http://www.w3.org/TR/2014/ED-css-line-grid-1-20140721/</a> |
| 60 | + http://www.w3.org/TR/2014/ED-css-line-grid-1-20140722/</a> |
61 | 61 |
|
62 | 62 | <dt>Latest version: |
63 | 63 |
|
@@ -508,8 +508,12 @@ <h3 id=line-snap><span class=secno>3.1. </span> Snapping Line Boxes: the |
508 | 508 | (The unshifted position is the position that would be determined by normal |
509 | 509 | line stacking rules, with consideration of any new controls defined by |
510 | 510 | other modules such as <a href="#ref-CSS3LINE" |
511 | | - rel=biblioentry>[CSS3LINE]<!--{{CSS3LINE}}--></a>.) Values have the |
512 | | - following meanings: |
| 511 | + rel=biblioentry>[CSS3LINE]<!--{{CSS3LINE}}--></a>.) Shifting line boxes in |
| 512 | + this way affects layout – it is not merely a display translation. If a |
| 513 | + line box is shifted downward, then subsequent line boxes will be laid out |
| 514 | + using the new shifted position as input to their line stacking rules. |
| 515 | + |
| 516 | + <p>Values have the following meanings: |
513 | 517 |
|
514 | 518 | <dl> |
515 | 519 | <dt><dfn id=none>‘<code class=css>none</code>’</dfn> |
@@ -572,18 +576,18 @@ <h3 id=line-snap><span class=secno>3.1. </span> Snapping Line Boxes: the |
572 | 576 | baselines while maintaining centering. |
573 | 577 |
|
574 | 578 | <p> This can be done in two shift-and-center steps. First, shift the |
575 | | - snapping lines as if there were no centering, then remove the shift for |
576 | | - the very first snapping line and center the block. You can see the result |
577 | | - in the partial shifting figure below. Note that the shift for lines 2 and |
578 | | - 3 are exactly the same as the full line snapping figure in the previous, |
579 | | - top-aligned example. |
| 579 | + snapping lines as if there were no centering (as in figure 8 above), then |
| 580 | + remove the shift for the very first snapping line and center the block. |
| 581 | + You can see the result in the partial shifting figure below. |
580 | 582 |
|
581 | 583 | <p> In the second step, measure the distance from the first snapped line's |
582 | 584 | baseline to the grid lines above and below, looking for the closest grid |
583 | | - line to that baseline. If the closest grid line is in the block-start |
584 | | - direction, then add space below the last line equal to twice that |
585 | | - distance. Then the block is centered again, which will align all of the |
586 | | - snapped lines to the grid. |
| 585 | + line to that baseline. |
| 586 | + |
| 587 | + <p> If the closest grid line is in the block-start direction, then add |
| 588 | + space below the last line in the block equal to twice that distance. Then |
| 589 | + the block is centered again, which will align all of the snapped lines to |
| 590 | + the grid. |
587 | 591 | <figure style="float:left;"> <img alt="line positions at step 1" |
588 | 592 | src="images/first-center-part-snapped.png"> <figcaption> Partial shifting |
589 | 593 | </figcaption> </figure> <figure style="float:left;"> <img |
|
0 commit comments