Skip to content

Commit 85ce379

Browse files
committed
*** empty log message ***
1 parent fca371b commit 85ce379

2 files changed

Lines changed: 116 additions & 35 deletions

File tree

css-line-grid/Overview.html

Lines changed: 68 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
153153
&lsquo;<code class=css>gd</code>&rsquo; length unit</a>
154154

155155
<li><a href="#round-length"><span class=secno>3.4. </span>Rounding Down
156-
to Multiple of Units: &lsquo;<code class=css>*gd</code>&rsquo; and
157-
&lsquo;<code class=css>*em</code>&rsquo;</a>
156+
Lengths to Multiple of Units: &lsquo;<code class=css>*gd</code>&rsquo;
157+
and &lsquo;<code class=css>*em</code>&rsquo;</a>
158158
</ul>
159159

160160
<li><a href="#conformance"><span class=secno>4. </span> Conformance</a>
@@ -204,19 +204,24 @@ <h3 id=context><span class=secno>1.1. </span>Background</h3>
204204

205205
<li>Align lines between columns in multi-column documents.
206206

207+
<li>Make the top and the bottom margins of pictures equal, while keeping
208+
the vertical rhythm of text before and after the pictures.
209+
207210
<li>Layout lines at the same position in every page in paged media.
208211
Keeping the position of the bottom line of a page has benefits for design
209-
and readability. This also results better readability on duplex printing,
210-
two pages spreads, or when displaying on slow display devices like e-ink.
212+
and readability. This also improves the readability on duplex printing,
213+
two pages spreads, and when displaying on slow display devices like
214+
e-ink.
211215

212-
<li>East Asian layouts require the use of vertical rhythm more often than
213-
other scripts does, even in single column, non-paged media documents, as
216+
<li>East Asian layouts require vertical rhythm more often than other
217+
scripts does, even in single column, non-paged media documents, as
214218
defined in <a href="#JLREQ" rel=biblioentry>[JLREQ]<!--{{JLREQ}}--></a>.
215219

216-
<li>In East Asian documents, it is often desirable to make the line width
217-
to be multiple of <em>em</em>. Most East Asian characters have 1em
218-
advance, and most East Asian documents are justified, so this minimizes
219-
the case where justification needs to expand lines.
220+
<li>It is often desirable in East Asian layouts to make the line width to
221+
be multiple of <em>em</em> without fractions. Since most East Asian
222+
characters have 1em advance, and since most East Asian documents are
223+
justified, this minimizes the case where justification needs to expand
224+
lines.
220225
</ul>
221226

222227
<p>There are several types of objects in a document that can break the
@@ -237,12 +242,12 @@ <h3 id=context><span class=secno>1.1. </span>Background</h3>
237242

238243
<li>Controls how lines and blocks align to the grids.
239244

240-
<li>Rounds lengths down to the mulitple of units.
245+
<li>Rounds lengths down to mulitple of units.
241246
</ul>
242247

243248
<p>It is important to control these capabilities independently, so that
244-
align to grids can be turned off for tables for example, but can be turned
245-
back on for the following text to the original grids.
249+
aligning to grids can be turned off for tables for example, but can then
250+
be turned back on for the following text to the grids.
246251

247252
<h3 id=placement><span class=secno>1.2. </span>Module Interactions</h3>
248253

@@ -354,8 +359,9 @@ <h3 id=layout-grid-line-prop><span class=secno>2.1. </span>Define Line
354359
module: text WD 20010517</a>.
355360

356361
<p class=issue>Grid origin should be defined by the element that has this
357-
property. In that case, should it inherit, or not inherit value but
358-
inherit grid?
362+
property, similar to &lsquo;<code class=css>display: static</code>&rsquo;.
363+
In that case, should this property inherit, or not inherit the property
364+
but inherit grid?
359365

360366
<h2 id=using-grids><span class=secno>3. </span>Using Grids</h2>
361367

@@ -517,10 +523,27 @@ <h3 id=grid-length-unit><span class=secno>3.3. </span>The &lsquo;<code
517523

518524
<p class=issue>Just copied from old WD, need to refresh
519525

520-
<h3 id=round-length><span class=secno>3.4. </span>Rounding Down to Multiple
521-
of Units: &lsquo;<code class=css><span class=index id=gd0 title="length
522-
unit::*gd">*gd</span></code>&rsquo; and &lsquo;<code class=css><span
523-
class=index id=em title="length unit::*em">*em</span></code>&rsquo;</h3>
526+
<p class=issue>Use cases for non-East Asian layouts?
527+
528+
<div class=example id=gyou-dori>
529+
<p>East Asian layout often requires heights specified by multiple of the
530+
line grids. In Japanese, this method is called Gyou-dori. Refer to <a
531+
href="#JLREQ" rel=biblioentry>[JLREQ]<!--{{JLREQ}}--></a> for more
532+
details of Gyou-dori.</p>
533+
534+
<pre><code class=css>
535+
<!-- -->h1 {
536+
<!-- --> line-grid-mode: block;
537+
<!-- --> min-height: 3gd;
538+
<!-- -->}
539+
<!-- --></code></pre>
540+
</div>
541+
542+
<h3 id=round-length><span class=secno>3.4. </span>Rounding Down Lengths to
543+
Multiple of Units: &lsquo;<code class=css><span class=index id=gd0
544+
title="length unit::*gd">*gd</span></code>&rsquo; and &lsquo;<code
545+
class=css><span class=index id=em title="length
546+
unit::*em">*em</span></code>&rsquo;</h3>
524547

525548
<p>The &lsquo;<code class=property>width</code>&rsquo; and &lsquo;<code
526549
class=property>height</code>&rsquo; properties accept &lsquo;<code
@@ -529,13 +552,35 @@ <h3 id=round-length><span class=secno>3.4. </span>Rounding Down to Multiple
529552
and then the result will be round down to the largest multiple of the
530553
specified unit that is equal to or less than the original computed value.
531554

532-
<p>The fraction is distributed evenly to each side margins. If it is used
533-
for &lsquo;<code class=property>height</code>&rsquo;, the half of fraction
534-
is added to the top and bottom margins, and if for &lsquo;<code
535-
class=property>width</code>&rsquo;, to the left and right margins.
555+
<p>The fraction is distributed evenly to the computed values of margins of
556+
each side. If it is used for &lsquo;<code
557+
class=property>height</code>&rsquo;, the half the fraction is added to the
558+
top and the bottom margins. If for &lsquo;<code
559+
class=property>width</code>&rsquo;, to the left and the right margins.
536560

537561
<p class=issue>Should this be a property instead?
538562

563+
<p class=issue>Should have an option to left/right align instead of center?
564+
Can author align running head and page numbers with body with this design?
565+
566+
<p class=issue>Use cases for non-East Asian layouts?
567+
568+
<div class=example>
569+
<p>It is often desirable for East Asian layouts to make the line width to
570+
be multiple of <em>em</em> without fractions. Since most East Asian
571+
characters have 1em advance, and since most East Asian documents are
572+
justified, this minimizes the case where justification needs to expand
573+
lines.</p>
574+
575+
<pre><code class=css>
576+
<!-- -->body {
577+
<!-- --> margin: 3cm 3.5cm 3cm 3cm;
578+
<!-- --> text-align: justify;
579+
<!-- --> width: *em;
580+
<!-- -->}
581+
<!-- --></code></pre>
582+
</div>
583+
539584
<h2 id=conformance><span class=secno>4. </span> Conformance</h2>
540585

541586
<h3 id=conformance-classes><span class=secno>4.1. </span> Conformance

css-line-grid/Overview.src.html

Lines changed: 48 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,21 @@ <h3 id="context">Background</h3>
7676
<ul>
7777
<li>Keep vertical rhythm for better readability.</li>
7878
<li>Align lines between columns in multi-column documents.</li>
79+
<li>Make the top and the bottom margins of pictures equal,
80+
while keeping the vertical rhythm of text before and after the pictures.</li>
7981
<li>Layout lines at the same position in every page in paged media.
8082
Keeping the position of the bottom line of a page has benefits for
8183
design and readability.
82-
This also results better readability on duplex printing,
84+
This also improves the readability on duplex printing,
8385
two pages spreads,
84-
or when displaying on slow display devices like e-ink.</li>
85-
<li>East Asian layouts require the use of vertical rhythm
86+
and when displaying on slow display devices like e-ink.</li>
87+
<li>East Asian layouts require vertical rhythm
8688
more often than other scripts does,
8789
even in single column, non-paged media documents,
8890
as defined in [[JLREQ]].</li>
89-
<li>In East Asian documents,
90-
it is often desirable to make the line width to be multiple of <em>em</em>.
91+
<li>It is often desirable in East Asian layouts
92+
to make the line width to be
93+
multiple of <em>em</em> without fractions.
9194
Since most East Asian characters have 1em advance,
9295
and since most East Asian documents are justified,
9396
this minimizes the case where justification needs to expand lines.</li>
@@ -109,12 +112,12 @@ <h3 id="context">Background</h3>
109112
<ul>
110113
<li>Defines grids in the line progression direction.</li>
111114
<li>Controls how lines and blocks align to the grids.</li>
112-
<li>Rounds lengths down to the mulitple of units.</li>
115+
<li>Rounds lengths down to mulitple of units.</li>
113116
</ul>
114117

115118
<p>It is important to control these capabilities independently,
116-
so that align to grids can be turned off for tables for example,
117-
but can be turned back on for the following text to the original grids.
119+
so that aligning to grids can be turned off for tables for example,
120+
but can then be turned back on for the following text to the grids.
118121
</p>
119122

120123

@@ -346,8 +349,21 @@ <h3 id="grid-length-unit">The ''<span class="index" title="length unit::gd">gd</
346349
<p>If no grid is specified, the gd unit should be treated the same as the em unit.</p>
347350

348351
<p class="issue">Just copied from old WD, need to refresh</p>
352+
<p class="issue">Use cases for non-East Asian layouts?</p>
349353

350-
<h3 id="round-length">Rounding Down to Multiple of Units:
354+
<div id="gyou-dori" class="example">
355+
<p>East Asian layout often requires heights specified by multiple of the line grids.
356+
In Japanese, this method is called Gyou-dori.
357+
Refer to [[JLREQ]] for more details of Gyou-dori.</p>
358+
<pre><code class="css">
359+
<!-- -->h1 {
360+
<!-- --> line-grid-mode: block;
361+
<!-- --> min-height: 3gd;
362+
<!-- -->}
363+
<!-- --></code></pre>
364+
</div>
365+
366+
<h3 id="round-length">Rounding Down Lengths to Multiple of Units:
351367
''<span class="index" title="length unit::*gd">*gd</span>''
352368
and ''<span class="index" title="length unit::*em">*em</span>''</h3>
353369

@@ -358,11 +374,31 @@ <h3 id="round-length">Rounding Down to Multiple of Units:
358374
the largest multiple of the specified unit
359375
that is equal to or less than the original computed value.</p>
360376

361-
<p>The fraction is distributed evenly to each side margins.
362-
If it is used for 'height', the half of fraction is added to the top and bottom margins,
363-
and if for 'width', to the left and right margins.</p>
377+
<p>The fraction is distributed evenly to the computed values of margins of each side.
378+
If it is used for 'height',
379+
the half the fraction is added to the top and the bottom margins.
380+
If for 'width', to the left and the right margins.</p>
364381

365382
<p class="issue">Should this be a property instead?</p>
383+
<p class="issue">Should have an option to left/right align instead of center?
384+
Can author align running head and page numbers with body with this design?</p>
385+
<p class="issue">Use cases for non-East Asian layouts?</p>
386+
387+
<div class="example">
388+
<p>It is often desirable for East Asian layouts
389+
to make the line width to be
390+
multiple of <em>em</em> without fractions.
391+
Since most East Asian characters have 1em advance,
392+
and since most East Asian documents are justified,
393+
this minimizes the case where justification needs to expand lines.</p>
394+
<pre><code class="css">
395+
<!-- -->body {
396+
<!-- --> margin: 3cm 3.5cm 3cm 3cm;
397+
<!-- --> text-align: justify;
398+
<!-- --> width: *em;
399+
<!-- -->}
400+
<!-- --></code></pre>
401+
</div>
366402

367403
<h2 id="conformance">
368404
Conformance</h2>

0 commit comments

Comments
 (0)