Skip to content

Commit 55d1348

Browse files
committed
Generated. Do not edit!
1 parent 8cca4c3 commit 55d1348

1 file changed

Lines changed: 69 additions & 6 deletions

File tree

css3-layout/Overview.html

Lines changed: 69 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
profile="http://microformats.org/profile/hcard http://microformats.org/wiki/rel-license">
66
<title>CSS Grid Template Layout Module</title>
77
<meta content="text/html; charset=utf-8" http-equiv=content-type>
8-
<link href=default.css rel=stylesheet type="text/css">
8+
<link href="../default.css" rel=stylesheet type="text/css">
99

1010
<style type="text/css">
1111
/* Just in case an incorrect max-width occurs in default.css */
@@ -36,13 +36,13 @@
3636
<h1>CSS Grid Template Layout Module</h1>
3737
<!--=================================================================-->
3838
<h2 class="no-num no-toc" id=longstatus-date-3-august-2004>Editor's Draft
39-
1 May 2012</h2>
39+
8 May 2012</h2>
4040

4141
<dl>
4242
<dt>This version:
4343

4444
<dd><a
45-
href="http://www.w3.org/TR/2012/ED-css3-layout-20120501/">http://www.w3.org/TR/2012/ED-css3-layout-20120501/</a>
45+
href="http://www.w3.org/TR/2012/ED-css3-layout-20120508/">http://www.w3.org/TR/2012/ED-css3-layout-20120508/</a>
4646

4747

4848
<dt>Latest version:
@@ -273,7 +273,7 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
273273
</span>Floating elements inside templates</a>
274274
</ul>
275275

276-
<li><a href="#page-templates"><span class=secno>7. </span> Page-based grid
276+
<li><a href="#page-templates"><span class=secno>7. </span>Page-based grid
277277
templates</a>
278278

279279
<li><a href="#chains"><span class=secno>8. </span>Chaining slots: the
@@ -3062,6 +3062,30 @@ <h3 id=vertical-alignment><span class=secno>6.1. </span>Vertical alignment
30623062
edge</dfn> and <dfn id=head-edge>head edge</dfn> of a box as a
30633063
writing-mode-dependent edge as follows:
30643064

3065+
<div class=issue>
3066+
<p>Especially in paged material, it is very common for a column of text to
3067+
be not just aligned or centered, but vertically “justified” to align
3068+
at both top and bottom, by a combination of means: scaling an image (if
3069+
there is one available), changing the line height, changing the vertical
3070+
margins, etc. Probably the easiest to specify in CSS is an elastic
3071+
margin, e.g.:
3072+
3073+
<pre>margin-top: 1.2em + 1fill - 0.6em</pre>
3074+
3075+
<p>(Which could mean: preferred width is 1.2em, may be increased without
3076+
limit, may be decreased by no more than 0.6em.) To increase the padding
3077+
instead of the margin, the &lsquo;<code class=property>flex</code>&rsquo;
3078+
property from css3-flex might be useful:
3079+
3080+
<pre>flex: 1</pre>
3081+
3082+
<p>although that doesn't say at which side the padding is added and thus
3083+
requires another property to align the content inside the box. A more
3084+
direct way could be:
3085+
3086+
<pre>padding-top: 0.5em + 1fill</pre>
3087+
</div>
3088+
30653089
<table class=equiv-table>
30663090
<thead>
30673091
<tr>
@@ -3370,10 +3394,10 @@ <h3 id=floating-elements-inside-templates><span class=secno>6.4.
33703394
needs to be extended to apply to slots: &lsquo;<code class=css>@footnote
33713395
:first::slot(a)</code>&rsquo; is the footnote area of slot a on the first
33723396
page.
3397+
<!--=================================================================-->
33733398

33743399
<div class=level4>
3375-
<!--=================================================================-->
3376-
<h2 id=page-templates><span class=secno>7. </span> Page-based grid
3400+
<h2 id=page-templates><span class=secno>7. </span>Page-based grid
33773401
templates</h2>
33783402

33793403
<p>A template can also be attached to a page, rather than an element. Such
@@ -3476,6 +3500,45 @@ <h2 id=page-templates><span class=secno>7. </span> Page-based grid
34763500
that a UA has to print a page (force page breaks) even though some slots
34773501
aren't filled yet.
34783502

3503+
<div class=example>
3504+
<p>This example shows a document with text in two languages, which are to
3505+
be shown side by side:
3506+
3507+
<pre>
3508+
@page {grid: "a b"}
3509+
:lang(en) {flow: a}
3510+
:lang(fr) {flow: b}
3511+
</pre>
3512+
3513+
<p>This works with a document where the languages are separated like
3514+
this:
3515+
3516+
<pre>
3517+
&lt;BODY>
3518+
&lt;DIV LANG=en>
3519+
&lt;H1>The blue house&lt;/H1>
3520+
...
3521+
&lt;/DIV>
3522+
&lt;DIV LANG=fr>
3523+
&lt;H1>La maison bleue&lt;/H1>
3524+
...
3525+
&lt;/DIV>
3526+
&lt;/BODY>
3527+
</pre>
3528+
3529+
<p>But also with a document where the languages are interleaved:
3530+
3531+
<pre>
3532+
&lt;BODY>
3533+
&lt;H1 LANG=en>
3534+
&lt;H1 LANG=fr>
3535+
&lt;P LANG=en>...
3536+
&lt;P LANG=fr>...
3537+
...
3538+
&lt;/BODY>
3539+
</pre>
3540+
</div>
3541+
34793542
<div class=example>
34803543
<p>This example shows how the first page may have a different layout from
34813544
the other pages. The slot &lsquo;<code class=css>a</code>&rsquo; only

0 commit comments

Comments
 (0)