3939
4040 < h1 > CSS Line Grid Module</ h1 >
4141
42- < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 30 April 2011</ h2 >
42+ < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 6 May 2011</ h2 >
4343
4444 < dl >
4545 < dt > This version:
4646
47- < dd > < a href ="http://www.w3.org/TR/2011/ED-unknown-shortname-20110430 ">
48- http://www.w3.org/TR/2011/ED-unknown-shortname-20110430 </ a > <!--
47+ < dd > < a href ="http://www.w3.org/TR/2011/ED-unknown-shortname-20110506 ">
48+ http://www.w3.org/TR/2011/ED-unknown-shortname-20110506 </ a > <!--
4949 <dt>Latest version:
5050 <dd><a href="http://www.w3.org/TR/css-line-grid">
5151 http://www.w3.org/TR/css-line-grid</a>
@@ -216,77 +216,75 @@ <h3 id=context><span class=secno>1.1. </span>Background</h3>
216216 < p > This specification provides features to align lines and blocks to
217217 invisible grids in the document.
218218
219- < p > Aligning lines and blocks to grids gives the following benefits:
219+ < p > Aligning lines and blocks to grids provides the following benefits:
220220
221221 < ul >
222- < li > Keep vertical rhythm for better readability.
222+ < li > Vertical rhythm is kept for better readability.
223223
224- < li > Align lines between columns in multi-column documents.
224+ < li > Lines are aligned between columns in multi-column documents.
225225
226- < li > Make the top and the bottom margins of pictures equal, while keeping
227- the vertical rhythm of text before and after the pictures.</ li >
226+ < li > The top and the bottom margins of pictures are made equal, while
227+ keeping the vertical rhythm of text before and after the pictures.</ li >
228228 <!--
229229 <li>Aligning to grids can sometimes be turned off for objects like tables,
230230 but then turned back on for the following text
231231 to the same grids as the one for the text before the objects.</li>
232232 -->
233233
234- < li > Layout lines at the same position in every page in paged media.
234+ < li > Layout lines are at the same position on every page in paged media.
235235 Keeping the position of the bottom line of a page has benefits for design
236- and readability. This also improves the readability on duplex printing,
237- two pages spreads, and when displaying on slow display devices like
238- e-ink.
236+ and readability. This also improves the readability of duplex printing,
237+ two pages spreads, and displaying on slow display devices like e-ink.
239238
240239 < li > East Asian layouts require vertical rhythm more often than other
241- scripts does, even in single column, non-paged media documents, as
242- defined in < a href ="#JLREQ " rel =biblioentry > [JLREQ]<!--{{JLREQ}}--> </ a > .
243-
244- < li > It is often desirable in East Asian layouts to make the line width to
245- be multiple of < em > em</ em > without fractions. Since most East Asian
246- characters have 1em advance, and since most East Asian documents are
247- justified, this minimizes the case where justification needs to expand
248- lines.
240+ scripts do, even in single column, non-paged media documents, as defined
241+ in < a href ="#JLREQ " rel =biblioentry > [JLREQ]<!--{{JLREQ}}--> </ a > .
242+
243+ < li > It is often desirable in East Asian layouts to make the line width a
244+ multiple of < em > em</ em > without fractions. Because most East Asian
245+ characters have 1em advance and most East Asian documents are justified,
246+ this minimizes cases where justification is needed to expand lines.
249247 </ ul >
250248
251249 < p > There are several types of objects in a document that can break the
252- vertical rhythm. Examples include lines in different size of text,
250+ vertical rhythm. Examples include lines with different sizes of text,
253251 pictures, and tables.
254252
255- < div class =figure > < img alt ="Keep vertical rhythm through pictures and
253+ < div class =figure > < img alt ="Vertical rhythm kept through pictures and
256254 different size of text in a multi-column document " height =246
257255 src =line-grid-multicol.png width =480 >
258- < p class =caption > Keep vertical rhythm through pictures and different size
256+ < p class =caption > Vertical rhythm kept through pictures and different size
259257 of text in a multi-column document.</ p >
260258 </ div >
261259
262260 < div class =figure id =ex-sidenote >
263261 < div class =sidenote-block >
264262 < div class =sidenote-body > Sidenotes (and footnotes for that matter) are
265- often set at a smaller size to the basic text. This smaller text should
266- still line up with basic text. Authors can achieve this effect by
267- calculating appropriate font-size, line-height, and margins*.</ div >
263+ often set at a smaller size than the basic text. This smaller text
264+ should still line up with the basic text. Authors can achieve this
265+ effect by calculating appropriate font-size, line-height, and margins*.</ div >
268266
269267 < div class =sidenote-note > Only if author controls everything. It can
270268 easily be broken by user stylesheet, for instance.</ div >
271269 </ div >
272270
273- < p class =caption > Sidenotes set at a smaller size, but still line up with
274- basic text.</ p >
271+ < p class =caption > Sidenotes are set at a smaller size, but still line up
272+ with the basic text.</ p >
275273 </ div >
276274
277- < p > This module defines following capabilities:
275+ < p > This module provides the following capabilities:
278276
279277 < ul >
280- < li > Defines grids in the line progression direction.
278+ < li > Defining grids in the line progression direction.
281279
282- < li > Controls how lines and blocks align to the grids.
280+ < li > Controling how lines and blocks align to the grids.
283281
284- < li > Rounds lengths down to multiple of units.
282+ < li > Rounding lengths down to multiples of units.
285283 </ ul >
286284
287- < p > It is important to control these capabilities independently, so that
288- aligning to grids can be turned off for tables for example , but can then
289- be turned back on for the following text to the grids.
285+ < p > It is important to control these capabilities independently, so that,
286+ for example, aligning to grids can be turned off for tables, but can then
287+ be turned back on for aligning the following text to the grids.
290288
291289 < h3 id =placement > < span class =secno > 1.2. </ span > Module Interactions</ h3 >
292290
@@ -498,7 +496,7 @@ <h3 id=layout-grid-mode-prop><span class=secno>3.1. </span>Grid Mode: the
498496
499497 < p > When this property is set to anything other than ‘< code
500498 class =css > none</ code > ’, the computed height of the object is
501- increased to the smallest multiple of the grid heights that is equal to or
499+ increased to the smallest multiple of the grid height that is equal to or
502500 smaller than the original computed height.
503501
504502 < p > When the value of this property is ‘< code
@@ -513,24 +511,25 @@ <h3 id=layout-grid-mode-prop><span class=secno>3.1. </span>Grid Mode: the
513511 the object to fit in. The starting alignment point is moved accordingly.
514512 This is illustrated below, where < em > a</ em > represents the numerical
515513 ‘< a href ="#layout-grid-line "> < code
516- class =property > layout-grid-line</ code > </ a > ’ value, < em > b</ em > and
517- < em > c</ em > are half the difference between the computed line-heights and
518- either the layout-grid-line value or twice the value respectively.:
514+ class =property > layout-grid-line</ code > </ a > ’ value, and < em > b</ em >
515+ and < em > c</ em > are half the difference between the computed line-heights
516+ and either the layout-grid-line value or twice the value respectively.
519517
520- < div class =figure > < img src =lgl.gif >
521- < p class =caption > Layout of contents within line grid, where < em > a</ em >
518+ < div class =figure > < img alt ="Layout of content within a line grid "
519+ src =lgl.gif >
520+ < p class =caption > Layout of content within a line grid, where < em > a</ em >
522521 represents the layout-grid-line value, and the alignment baseline is at
523522 the bottom (after-edge).</ p >
524523 </ div >
525524
526- < p > As for regular height computation, the ruby box is treated especially .
525+ < p > As for regular height computation, the ruby box is treated specifically .
527526 In a similar fashion to the line-height determination process, only the
528- ruby base element is considered for centering purpose , however the above
527+ ruby base element is considered for centering purposes , however the above
529528 and/or the after space should be sufficient to fit the ruby text above
530529 and/or after the base text within the grid-line space. If this is not the
531- case, the grid-line size needs to be increased in multiple of grid rows
532- until the whole ruby box fits. < span class =issue > Is just ignoring ruby
533- text enough? like rt { layout-grid-mode: ignore; } or nothing needed to be
530+ case, the grid-line size needs to be increased in multiple grid rows until
531+ the whole ruby box fits. < span class =issue > Is just ignoring ruby text
532+ enough? like rt { layout-grid-mode: ignore; } or nothing needed to be
534533 defined if line-stacking-ruby: auto does the work?</ span >
535534
536535 < p > Note that in order for this property to have an effect, line grids must
@@ -542,16 +541,16 @@ <h3 id=layout-grid-mode-prop><span class=secno>3.1. </span>Grid Mode: the
542541 like only a word in a line is large. But how can we align baselines to
543542 grids? Align baselines to center of grids? Lines may not fit within one
544543 grid. Align baselines to grids might work better, but it may not work well
545- with settings headigns to ‘< code class =css > block</ code > ’.
544+ with settings headings to ‘< code class =css > block</ code > ’.
546545
547546 < div class =example >
548547 < div class =sidefigure > < img alt ="Large text wraps within line grids "
549548 height =244 src =line-grid-wrap.png width =276 >
550549 < p class =caption > Large text wraps within line grids.</ p >
551550 </ div >
552551
553- < p > When a different size of text like headings wraps, it is usually
554- aligned to grids as a block and lines within the block do not align.</ p >
552+ < p > When a different size of text, such as a headings, wraps, it is usually
553+ aligned to grids as a block and the lines within the block do not align.</ p >
555554
556555 < p > This effect can be achieved by the following code:</ p >
557556
@@ -577,7 +576,7 @@ <h3 id=grid-length-unit><span class=secno>3.3. </span>The ‘<code
577576 Grid units are used very frequently in East Asian typography, especially
578577 for the left, right, top and bottom element margins.
579578
580- < p > Therefore a new length unit is necessary: gd to enable the author to
579+ < p > Therefore, a new length unit is necessary, gd, to enable the author to
581580 specify the various measurements in terms of the grid.
582581
583582 < p > For example, consider the following style:
@@ -613,7 +612,7 @@ <h3 id=grid-length-unit><span class=secno>3.3. </span>The ‘<code
613612 < p > East Asian layout often requires heights specified by the count of the
614613 line grids. In Japanese, this method is called Gyou-dori. Refer to < a
615614 href ="#JLREQ " rel =biblioentry > [JLREQ]<!--{{JLREQ}}--> </ a > for more
616- details of Gyou-dori.</ p >
615+ details about Gyou-dori.</ p >
617616
618617 < pre > < code class =css >
619618<!-- --> h1 {
@@ -633,13 +632,13 @@ <h3 id=round-length><span class=secno>3.4. </span>Rounding Down Lengths to
633632 class =property > height</ code > ’ properties accept ‘< code
634633 class =css > *gd</ code > ’ and ‘< code class =css > *em</ code > ’
635634 values. These values compute to ‘< code class =css > auto</ code > ’,
636- and then the result will be round down to the largest multiple of the
635+ and then the result will be rounded down to the largest multiple of the
637636 specified unit that is equal to or less than the original computed value.
638637
639- < p > The fraction is distributed evenly to the computed values of margins of
638+ < p > The fraction is distributed evenly to the computed values of margins on
640639 each side. If it is used for ‘< code
641- class =property > height</ code > ’, the half the fraction is added to the
642- top and the bottom margins. If for ‘< code
640+ class =property > height</ code > ’, half the fraction is added to the top
641+ and the bottom margins. If for ‘< code
643642 class =property > width</ code > ’, to the left and the right margins.
644643
645644 < p class =issue > Should this be a property instead?
@@ -651,10 +650,9 @@ <h3 id=round-length><span class=secno>3.4. </span>Rounding Down Lengths to
651650
652651 < div class =example >
653652 < p > It is often desirable for East Asian layouts to make the line width to
654- be multiple of < em > em</ em > without fractions. Since most East Asian
655- characters have 1em advance, and since most East Asian documents are
656- justified, this minimizes the case where justification needs to expand
657- lines.</ p >
653+ be multiple of < em > em</ em > without fractions. Because most East Asian
654+ characters have 1em advance and most East Asian documents are justified,
655+ this minimizes cases where justification is needed to expand lines.</ p >
658656
659657 < pre > < code class =css >
660658<!-- --> body {
0 commit comments