Skip to content

Commit 8f49e68

Browse files
committed
[css-regions] updating examples
1 parent 2434bab commit 8f49e68

2 files changed

Lines changed: 65 additions & 58 deletions

File tree

css3-regions/Overview.html

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
rel=dcterms.rights>
1313
<meta content="CSS Regions Module Level 3" name=dcterms.title>
1414
<meta content=text name=dcterms.type>
15-
<meta content=2013-02-26 name=dcterms.issued>
15+
<meta content=2013-03-01 name=dcterms.issued>
1616
<meta content="Vincent Hardy" name=dcterms.creator>
1717
<meta content="Rossen Atanassov" name=dcterms.creator>
1818
<meta content="Alan Stearns" name=dcterms.creator>
@@ -50,8 +50,7 @@
5050

5151
<h1 id=css-regions-module>CSS Regions Module Level 3</h1>
5252

53-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 26 February
54-
2013</h2>
53+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 1 March 2013</h2>
5554

5655
<dl>
5756
<dt>This version:
@@ -445,29 +444,29 @@ <h3 id=named-flows-and-regions><span class=secno>1.1. </span>Named flows
445444
class=css>region1</code>’, ‘<code class=css>region2</code>’,
446445
<code class=css>region3</code>’ and ‘<code
447446
class=css>region4</code>’ IDs become CSS Regions that consume the
448-
<code class=css>article_flow</code>’ content.
447+
<code class=property>article-flow</code>’ content.
449448

450449
<div class=example>
451450
<pre>
452451
&lt;style&gt;
453452
article {
454-
<strong>flow-into: article_flow;</strong>
453+
<strong>flow-into: article-flow;</strong>
455454
}
456455

457456
#region1, #region2, #region3, #region4 {
458-
<strong>flow-from: article_flow;</strong>
457+
<strong>flow-from: article-flow;</strong>
459458
}
460459
&lt;/style&gt;
461460
</pre>
462461
</div>
463462

464-
<p>The ‘<code class=css>article_flow</code>’ value on the ‘<a
463+
<p>The ‘<code class=property>article-flow</code>’ value on the ‘<a
465464
href="#flow-into"><code class=property>flow-into</code></a>’ property
466465
directs the <code>article</code> element to the ‘<code
467-
class=css>article_flow</code><a href="#named-flow0">named flow</a>.
468-
Setting the ‘<a href="#flow-from"><code
466+
class=property>article-flow</code><a href="#named-flow0">named
467+
flow</a>. Setting the ‘<a href="#flow-from"><code
469468
class=property>flow-from</code></a>’ property on block containers to
470-
<code class=css>article_flow</code>’ makes them CSS Regions and
469+
<code class=property>article-flow</code>’ makes them CSS Regions and
471470
associates the resulting region chain with the <a
472471
href="#named-flow0">named flow</a>: the flow is ‘<code
473472
class=css>poured</code>’ into the region chain.
@@ -1325,24 +1324,28 @@ <h3 id=the-region-fragment-property><span class=secno>3.4. </span>The
13251324

13261325
<div class=example>
13271326
<pre>
1328-
&lt;style&gt;
1329-
article {
1330-
flow-into: "article";
1331-
}
1332-
1333-
#region_1, #region_2 {
1334-
flow-from: article;
1335-
<strong>region-fragment: break;</strong> /* or auto */
1336-
<strong>overflow: visible;</strong> /* or hidden */
1337-
}
1327+
&lt;body is="two-region-example"&gt;
1328+
&lt;article&gt;...&lt;/article&gt;
1329+
&lt;/body&gt;
13381330

1339-
&lt;/style&gt;
1331+
&lt;element name="two-region-example" extends="body"&gt;
1332+
&lt;style&gt;
1333+
article {
1334+
flow-into: article-flow;
1335+
}
1336+
#region_1, #region_2 {
1337+
flow-from: article-flow;
1338+
<strong>region-fragment: break;</strong> /* or auto */
1339+
<strong>overflow: visible;</strong> /* or hidden */
1340+
}
1341+
&lt;/style&gt;
13401342

1341-
&lt;article&gt;...&lt;/article&gt;
1343+
&lt;template&gt;
1344+
&lt;div id="region_1"&gt;&lt;/div&gt;
1345+
&lt;div id="region_2"&gt;&lt;/div&gt;
1346+
&lt;/template&gt;
1347+
&lt;/element&gt;
13421348

1343-
&lt;div id="region_1"&gt;&lt;/div&gt;
1344-
&lt;div id="region_2"&gt;&lt;/div&gt;
1345-
13461349
</pre>
13471350
</div>
13481351

@@ -1510,17 +1513,17 @@ <h3 id=the-at-region-style-rule><span class=secno>3.5. </span>The @region
15101513

15111514
<div class=example id=region-style-example>
15121515
<p>In the following example, the <a href="#named-flow0">named flow</a>
1513-
<code class=css>article_flow</code>’ flows through ‘<code
1516+
<code class=property>article-flow</code>’ flows through ‘<code
15141517
class=css>region_1</code>’ and ‘<code class=css>region_2</code>’.
15151518

15161519
<pre>
15171520
&lt;style&gt;
15181521
#div_1 {
1519-
<strong>flow-into: article_flow;</strong>
1522+
<strong>flow-into: article-flow;</strong>
15201523
}
15211524

15221525
#region_1, #region_2 {
1523-
<strong>flow-from: article_flow;</strong>
1526+
<strong>flow-from: article-flow;</strong>
15241527
}
15251528

15261529
/* region style "RSA" */
@@ -3298,7 +3301,7 @@ <h2 class=no-num id=intro-example-code>Appendix A. Example Code for
32983301

32993302
&lt;element name="x-fancy-layout" extends="body"&gt;
33003303
&lt;template&gt;
3301-
&lt;style scoped&gt;
3304+
&lt;style&gt;
33023305
#grid {
33033306
width: 80vw;
33043307
height: 60vw;
@@ -3328,7 +3331,7 @@ <h2 class=no-num id=intro-example-code>Appendix A. Example Code for
33283331
* Creates the named flow
33293332
*/</span>
33303333
article {
3331-
<strong>flow-into: article_flow;</strong>
3334+
<strong>flow-into: article-flow;</strong>
33323335
}
33333336

33343337
<span
@@ -3337,7 +3340,7 @@ <h2 class=no-num id=intro-example-code>Appendix A. Example Code for
33373340
* This creates a region chain for the named flow.
33383341
*/</span>
33393342
#region1, #region2, #region3, #region4 {
3340-
<strong>flow-from: article_flow;</strong>
3343+
<strong>flow-from: article-flow;</strong>
33413344
}
33423345
&lt;/style&gt;
33433346
&lt;div id="grid"&gt;

css3-regions/Overview.src.html

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -189,27 +189,27 @@ <h3 id="named-flows-and-regions">Named flows and region chains</h3>
189189
how the content of an <code>&lt;article&gt;</code> element
190190
becomes a <span>named flow</span>
191191
and how boxes marked with 'region1', 'region2', 'region3' and 'region4' IDs
192-
become CSS Regions that consume the 'article_flow' content.</p>
192+
become CSS Regions that consume the 'article-flow' content.</p>
193193

194194
<div class="example">
195195
<pre>
196196
&lt;style&gt;
197197
article {
198-
<strong>flow-into: article_flow;</strong>
198+
<strong>flow-into: article-flow;</strong>
199199
}
200200

201201
#region1, #region2, #region3, #region4 {
202-
<strong>flow-from: article_flow;</strong>
202+
<strong>flow-from: article-flow;</strong>
203203
}
204204
&lt;/style&gt;
205205
</pre>
206206
</div>
207207

208-
<p>The 'article_flow' value on the 'flow-into' property
208+
<p>The 'article-flow' value on the 'flow-into' property
209209
directs the <code>article</code> element
210-
to the 'article_flow' <span>named flow</span>.
210+
to the 'article-flow' <span>named flow</span>.
211211
Setting the 'flow-from' property on block containers
212-
to 'article_flow' makes them CSS Regions
212+
to 'article-flow' makes them CSS Regions
213213
and associates the resulting region chain
214214
with the <span>named flow</span>:
215215
the flow is ''poured''
@@ -1176,24 +1176,28 @@ <h3 id="the-region-fragment-property">The region-fragment property</h3>
11761176

11771177
<div class="example">
11781178
<pre>
1179-
&lt;style&gt;
1180-
article {
1181-
flow-into: "article";
1182-
}
1183-
1184-
#region_1, #region_2 {
1185-
flow-from: article;
1186-
<strong>region-fragment: break;</strong> /* or auto */
1187-
<strong>overflow: visible;</strong> /* or hidden */
1188-
}
1179+
&lt;body is="two-region-example"&gt;
1180+
&lt;article&gt;...&lt;/article&gt;
1181+
&lt;/body&gt;
11891182

1190-
&lt;/style&gt;
1183+
&lt;element name="two-region-example" extends="body"&gt;
1184+
&lt;style&gt;
1185+
article {
1186+
flow-into: article-flow;
1187+
}
1188+
#region_1, #region_2 {
1189+
flow-from: article-flow;
1190+
<strong>region-fragment: break;</strong> /* or auto */
1191+
<strong>overflow: visible;</strong> /* or hidden */
1192+
}
1193+
&lt;/style&gt;
11911194

1192-
&lt;article&gt;...&lt;/article&gt;
1195+
&lt;template&gt;
1196+
&lt;div id="region_1"&gt;&lt;/div&gt;
1197+
&lt;div id="region_2"&gt;&lt;/div&gt;
1198+
&lt;/template&gt;
1199+
&lt;/element&gt;
11931200

1194-
&lt;div id="region_1"&gt;&lt;/div&gt;
1195-
&lt;div id="region_2"&gt;&lt;/div&gt;
1196-
11971201
</pre>
11981202
</div>
11991203

@@ -1319,16 +1323,16 @@ <h3 id="the-at-region-style-rule">The @region rule</h3>
13191323
</div>
13201324

13211325
<div class="example" id="region-style-example">
1322-
<p>In the following example, the <span>named flow</span> 'article_flow' flows
1326+
<p>In the following example, the <span>named flow</span> 'article-flow' flows
13231327
through 'region_1' and 'region_2'.</p>
13241328
<pre>
13251329
&lt;style&gt;
13261330
#div_1 {
1327-
<strong>flow-into: article_flow;</strong>
1331+
<strong>flow-into: article-flow;</strong>
13281332
}
13291333

13301334
#region_1, #region_2 {
1331-
<strong>flow-from: article_flow;</strong>
1335+
<strong>flow-from: article-flow;</strong>
13321336
}
13331337

13341338
/* region style "RSA" */
@@ -2757,7 +2761,7 @@ <h2 id="intro-example-code" class="no-num">Appendix A. Example Code for Introduc
27572761

27582762
&lt;element name="x-fancy-layout" extends="body"&gt;
27592763
&lt;template&gt;
2760-
&lt;style scoped&gt;
2764+
&lt;style&gt;
27612765
#grid {
27622766
width: 80vw;
27632767
height: 60vw;
@@ -2786,15 +2790,15 @@ <h2 id="intro-example-code" class="no-num">Appendix A. Example Code for Introduc
27862790
* Creates the named flow
27872791
*/</span>
27882792
article {
2789-
<strong>flow-into: article_flow;</strong>
2793+
<strong>flow-into: article-flow;</strong>
27902794
}
27912795

27922796
<span class="highlight">/*
27932797
* Associate it with the intended CSS Regions.
27942798
* This creates a region chain for the named flow.
27952799
*/</span>
27962800
#region1, #region2, #region3, #region4 {
2797-
<strong>flow-from: article_flow;</strong>
2801+
<strong>flow-from: article-flow;</strong>
27982802
}
27992803
&lt;/style&gt;
28002804
&lt;div id="grid"&gt;

0 commit comments

Comments
 (0)