Skip to content

Commit e0144ed

Browse files
committed
[css-regions] s/_/-/ in example idents
1 parent 8f49e68 commit e0144ed

2 files changed

Lines changed: 66 additions & 66 deletions

File tree

css3-regions/Overview.html

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,16 +1333,16 @@ <h3 id=the-region-fragment-property><span class=secno>3.4. </span>The
13331333
article {
13341334
flow-into: article-flow;
13351335
}
1336-
#region_1, #region_2 {
1336+
#region-1, #region-2 {
13371337
flow-from: article-flow;
13381338
<strong>region-fragment: break;</strong> /* or auto */
13391339
<strong>overflow: visible;</strong> /* or hidden */
13401340
}
13411341
&lt;/style&gt;
13421342

13431343
&lt;template&gt;
1344-
&lt;div id="region_1"&gt;&lt;/div&gt;
1345-
&lt;div id="region_2"&gt;&lt;/div&gt;
1344+
&lt;div id="region-1"&gt;&lt;/div&gt;
1345+
&lt;div id="region-2"&gt;&lt;/div&gt;
13461346
&lt;/template&gt;
13471347
&lt;/element&gt;
13481348

@@ -1356,8 +1356,8 @@ <h3 id=the-region-fragment-property><span class=secno>3.4. </span>The
13561356
<tr>
13571357
<td><code class=css>flow-into: "article"</code>
13581358

1359-
<td><code class=html>region_1</code> and <code
1360-
class=html>region_2</code>
1359+
<td><code class=html>region-1</code> and <code
1360+
class=html>region-2</code>
13611361

13621362
<td><code class=css>region-fragment: auto</code><br>
13631363
<code class=css>overflow:visible</code>
@@ -1514,38 +1514,38 @@ <h3 id=the-at-region-style-rule><span class=secno>3.5. </span>The @region
15141514
<div class=example id=region-style-example>
15151515
<p>In the following example, the <a href="#named-flow0">named flow</a>
15161516
<code class=property>article-flow</code>’ flows through ‘<code
1517-
class=css>region_1</code>’ and ‘<code class=css>region_2</code>’.
1517+
class=css>region-1</code>’ and ‘<code class=css>region-2</code>’.
15181518

15191519
<pre>
15201520
&lt;style&gt;
1521-
#div_1 {
1521+
#div-1 {
15221522
<strong>flow-into: article-flow;</strong>
15231523
}
15241524

1525-
#region_1, #region_2 {
1525+
#region-1, #region-2 {
15261526
<strong>flow-from: article-flow;</strong>
15271527
}
15281528

15291529
/* region style "RSA" */
1530-
<strong>@region #region_1, #region_2</strong> {
1530+
<strong>@region #region-1, #region-2</strong> {
15311531
div {...}
15321532
p {...}
15331533
}
15341534

15351535
/* region style "RSB" */
1536-
<strong>@region #region_1</strong> {
1536+
<strong>@region #region-1</strong> {
15371537
p {...}
15381538
}
15391539

15401540
&lt;/style&gt;
15411541

1542-
&lt;div id="div_1"&gt;
1543-
&lt;p id="p_1"&gt;...&lt;/p&gt;
1544-
&lt;p id="p_2"&gt;...&lt;/p&gt;
1542+
&lt;div id="div-1"&gt;
1543+
&lt;p id="p-1"&gt;...&lt;/p&gt;
1544+
&lt;p id="p-2"&gt;...&lt;/p&gt;
15451545
&lt;/div&gt;
15461546

1547-
&lt;div id="region_1"&gt;&lt;/div&gt;
1548-
&lt;div id="region_2"&gt;&lt;/div&gt;
1547+
&lt;div id="region-1"&gt;&lt;/div&gt;
1548+
&lt;div id="region-2"&gt;&lt;/div&gt;
15491549

15501550
</pre>
15511551

@@ -1554,45 +1554,45 @@ <h3 id=the-at-region-style-rule><span class=secno>3.5. </span>The @region
15541554
id="region_styling_img_2" name="region_styling_img_2"
15551555
src="images/region-styling-2.png">
15561556
<ul class=swatch-list>
1557-
<li><span class=swatch style="background:#1C75BC"> </span>div div_1
1557+
<li><span class=swatch style="background:#1C75BC"> </span>div div-1
15581558

1559-
<li><span class=swatch style="background:crimson"> </span>paragraph p_1
1559+
<li><span class=swatch style="background:crimson"> </span>paragraph p-1
15601560

1561-
<li><span class=swatch style="background:white"> </span>paragraph p_2
1561+
<li><span class=swatch style="background:white"> </span>paragraph p-2
15621562

15631563
<li><span class=swatch style="background:#E6E7E8"> </span>range of flow
1564-
that fits into region_1
1564+
that fits into region-1
15651565

15661566
<li><span class=swatch style="background:#BCBEC0"> </span>range of flow
1567-
that fits into region_2
1567+
that fits into region-2
15681568
</ul>
15691569
</div>
15701570

15711571
<p>The region style ‘<code class=css>RSA</code>’ applies to flow
1572-
content that is laid out in either ‘<code class=css>region_1</code>
1573-
or ‘<code class=css>region_2</code>’.
1572+
content that is laid out in either ‘<code class=css>region-1</code>
1573+
or ‘<code class=css>region-2</code>’.
15741574

15751575
<p>The first rule set ‘<code class=css>div {...}</code>’ applies to
15761576
all <code class=html>&lt;div&gt;</code> elements that fit partially or
1577-
fully into ‘<code class=css>region_1</code>’ or ‘<code
1578-
class=css>region_2</code>’. <code class=html>div_1</code> is split
1579-
between ‘<code class=css>region_1</code>’ and ‘<code
1580-
class=css>region_2</code>’ and gets the style from this style rule.
1577+
fully into ‘<code class=css>region-1</code>’ or ‘<code
1578+
class=css>region-2</code>’. <code class=html>div-1</code> is split
1579+
between ‘<code class=css>region-1</code>’ and ‘<code
1580+
class=css>region-2</code>’ and gets the style from this style rule.
15811581

15821582
<p>The second rule set ‘<code class=css>p {...}</code>’ applies to all
15831583
<code class=html>&lt;p&gt;</code> elements that fit into ‘<code
1584-
class=css>region_1</code>’ or ‘<code class=css>region_2</code>’. In
1585-
our example, both <code class=html>p_1</code> and <code
1586-
class=html>p_2</code> are selected.
1584+
class=css>region-1</code>’ or ‘<code class=css>region-2</code>’. In
1585+
our example, both <code class=html>p-1</code> and <code
1586+
class=html>p-2</code> are selected.
15871587

15881588
<p>The region style ‘<code class=css>RSB</code>’ applies to flow
1589-
content that fits in ‘<code class=css>region_1</code>’.
1589+
content that fits in ‘<code class=css>region-1</code>’.
15901590

15911591
<p>The first rule set ‘<code class=css>p {...}</code>’ matches <code
1592-
class=html>p_1</code> and <code class=html>p_2</code> because these
1593-
paragraphs flow into ‘<code class=css>region_1</code>’. Only the
1594-
fragment of <code class=html>p_2</code> that flows into <code
1595-
class=html>region_1</code> is styled with this rule.
1592+
class=html>p-1</code> and <code class=html>p-2</code> because these
1593+
paragraphs flow into ‘<code class=css>region-1</code>’. Only the
1594+
fragment of <code class=html>p-2</code> that flows into <code
1595+
class=html>region-1</code> is styled with this rule.
15961596
</div>
15971597

15981598
<div class=issue-marker data-bug_id=15734 data-bug_status=NEW> <a

css3-regions/Overview.src.html

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,16 +1185,16 @@ <h3 id="the-region-fragment-property">The region-fragment property</h3>
11851185
article {
11861186
flow-into: article-flow;
11871187
}
1188-
#region_1, #region_2 {
1188+
#region-1, #region-2 {
11891189
flow-from: article-flow;
11901190
<strong>region-fragment: break;</strong> /* or auto */
11911191
<strong>overflow: visible;</strong> /* or hidden */
11921192
}
11931193
&lt;/style&gt;
11941194

11951195
&lt;template&gt;
1196-
&lt;div id="region_1"&gt;&lt;/div&gt;
1197-
&lt;div id="region_2"&gt;&lt;/div&gt;
1196+
&lt;div id="region-1"&gt;&lt;/div&gt;
1197+
&lt;div id="region-2"&gt;&lt;/div&gt;
11981198
&lt;/template&gt;
11991199
&lt;/element&gt;
12001200

@@ -1207,8 +1207,8 @@ <h3 id="the-region-fragment-property">The region-fragment property</h3>
12071207
<tr>
12081208
<td>''flow-into: "article"''</td>
12091209

1210-
<td><code class="html">region_1</code> and <code class=
1211-
"html">region_2</code></td>
1210+
<td><code class="html">region-1</code> and <code class=
1211+
"html">region-2</code></td>
12121212

12131213
<td>''region-fragment: auto''<br>
12141214
''overflow:visible''</td>
@@ -1324,37 +1324,37 @@ <h3 id="the-at-region-style-rule">The @region rule</h3>
13241324

13251325
<div class="example" id="region-style-example">
13261326
<p>In the following example, the <span>named flow</span> 'article-flow' flows
1327-
through 'region_1' and 'region_2'.</p>
1327+
through 'region-1' and 'region-2'.</p>
13281328
<pre>
13291329
&lt;style&gt;
1330-
#div_1 {
1330+
#div-1 {
13311331
<strong>flow-into: article-flow;</strong>
13321332
}
13331333

1334-
#region_1, #region_2 {
1334+
#region-1, #region-2 {
13351335
<strong>flow-from: article-flow;</strong>
13361336
}
13371337

13381338
/* region style "RSA" */
1339-
<strong>@region #region_1, #region_2</strong> {
1339+
<strong>@region #region-1, #region-2</strong> {
13401340
div {...}
13411341
p {...}
13421342
}
13431343

13441344
/* region style "RSB" */
1345-
<strong>@region #region_1</strong> {
1345+
<strong>@region #region-1</strong> {
13461346
p {...}
13471347
}
13481348

13491349
&lt;/style&gt;
13501350

1351-
&lt;div id="div_1"&gt;
1352-
&lt;p id="p_1"&gt;...&lt;/p&gt;
1353-
&lt;p id="p_2"&gt;...&lt;/p&gt;
1351+
&lt;div id="div-1"&gt;
1352+
&lt;p id="p-1"&gt;...&lt;/p&gt;
1353+
&lt;p id="p-2"&gt;...&lt;/p&gt;
13541354
&lt;/div&gt;
13551355

1356-
&lt;div id="region_1"&gt;&lt;/div&gt;
1357-
&lt;div id="region_2"&gt;&lt;/div&gt;
1356+
&lt;div id="region-1"&gt;&lt;/div&gt;
1357+
&lt;div id="region-2"&gt;&lt;/div&gt;
13581358

13591359
</pre>
13601360

@@ -1366,44 +1366,44 @@ <h3 id="the-at-region-style-rule">The @region rule</h3>
13661366

13671367
<ul class="swatch-list">
13681368
<li><span class="swatch" style=
1369-
"background:#1C75BC">&nbsp;</span>div div_1</li>
1369+
"background:#1C75BC">&nbsp;</span>div div-1</li>
13701370

13711371
<li><span class="swatch" style=
1372-
"background:crimson">&nbsp;</span>paragraph p_1</li>
1372+
"background:crimson">&nbsp;</span>paragraph p-1</li>
13731373

13741374
<li><span class="swatch" style=
1375-
"background:white">&nbsp;</span>paragraph p_2</li>
1375+
"background:white">&nbsp;</span>paragraph p-2</li>
13761376

13771377
<li><span class="swatch" style=
13781378
"background:#E6E7E8">&nbsp;</span>range of flow that fits into
1379-
region_1</li>
1379+
region-1</li>
13801380

13811381
<li><span class="swatch" style=
13821382
"background:#BCBEC0">&nbsp;</span>range of flow that fits into
1383-
region_2</li>
1383+
region-2</li>
13841384
</ul>
13851385
</div>
13861386

13871387
<p>The region style ''RSA'' applies to flow content that is laid out in either
1388-
'region_1' or 'region_2'.</p>
1388+
'region-1' or 'region-2'.</p>
13891389

13901390
<p>The first rule set ''div {...}'' applies to all <code class=
1391-
"html">&lt;div&gt;</code> elements that fit partially or fully into 'region_1' or
1392-
'region_2'. <code class="html">div_1</code> is split between 'region_1' and
1393-
'region_2' and gets the style from this style rule.</p>
1391+
"html">&lt;div&gt;</code> elements that fit partially or fully into 'region-1' or
1392+
'region-2'. <code class="html">div-1</code> is split between 'region-1' and
1393+
'region-2' and gets the style from this style rule.</p>
13941394

13951395
<p>The second rule set ''p {...}'' applies to all <code class=
1396-
"html">&lt;p&gt;</code> elements that fit into 'region_1' or
1397-
'region_2'. In our example, both <code class="html">p_1</code>
1398-
and <code class="html">p_2</code> are selected.</p>
1396+
"html">&lt;p&gt;</code> elements that fit into 'region-1' or
1397+
'region-2'. In our example, both <code class="html">p-1</code>
1398+
and <code class="html">p-2</code> are selected.</p>
13991399

14001400
<p>The region style ''RSB'' applies to flow content that fits in
1401-
'region_1'.</p>
1401+
'region-1'.</p>
14021402

1403-
<p>The first rule set ''p {...}'' matches <code class="html">p_1</code>
1404-
and <code class="html">p_2</code>
1405-
because these paragraphs flow into 'region_1'. Only the fragment of
1406-
<code class="html">p_2</code> that flows into <code class="html">region_1</code>
1403+
<p>The first rule set ''p {...}'' matches <code class="html">p-1</code>
1404+
and <code class="html">p-2</code>
1405+
because these paragraphs flow into 'region-1'. Only the fragment of
1406+
<code class="html">p-2</code> that flows into <code class="html">region-1</code>
14071407
is styled with this rule.</p>
14081408
</div>
14091409

0 commit comments

Comments
 (0)