Skip to content

Commit b5be29a

Browse files
committed
Editorial. Make the examples easier to read.
1 parent 9d3addd commit b5be29a

2 files changed

Lines changed: 22 additions & 11 deletions

File tree

css3-hierarchies/Overview.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 19 October
5757

5858

5959
<dd><a
60-
href="http://www.w3.org/TR/css3-hierarchies/">http://www.w3.org/TR/css3-hierarchies/</a>
60+
href="//www.w3.org/TR/css3-hierarchies/">http://www.w3.org/TR/css3-hierarchies/</a>
6161

6262

6363
<dt>Editor's draft:
6464

6565
<dd><a
66-
href="://dev.w3.org/csswg/css3-hierarchies/">http://dev.w3.org/csswg/css3-hierarchies/</a>
66+
href="//dev.w3.org/csswg/css3-hierarchies/">http://dev.w3.org/csswg/css3-hierarchies/</a>
6767
<!--
6868
<dt>Previous version:
6969
<dd><a href="http://www.w3.org/PreviousVersionURI">
@@ -309,28 +309,32 @@ <h2 id=nesting-selector><span class=secno>2. </span> The &amp; Selector</h2>
309309
the parent rule set's selector list.
310310

311311
<div class=example>
312-
<p>The following two examples produce an equivalent result on all pages:
312+
<p>The following example using Hierarchies:
313313

314314
<pre>
315315
div {
316316
& .keyword {color: red;}
317317
&:hover {background-color: rgb(200, 255, 255);}
318318
}</pre>
319319

320+
<p>...produces the same results as the following CSS:
321+
320322
<pre>
321323
div .keyword {color:red;}
322324

323325
div:hover {background-color: rgb(200, 255, 255);}</pre>
324326
</div>
325327

326328
<div class=example>
327-
<p>The following two examples provide an equivalent result on all pages:
329+
<p>The following example using Hierarchies:
328330

329331
<pre>
330332
div, p {
331333
& .keyword, & .constant {color: red;}
332334
}</pre>
333335

336+
<p>...produces the same results as the following CSS:
337+
334338
<pre>
335339
div .keyword {color:red;}
336340
div .constant {color:red;}
@@ -343,7 +347,7 @@ <h2 id=nesting-selector><span class=secno>2. </span> The &amp; Selector</h2>
343347
can co-exist.
344348

345349
<div class=example>
346-
<p>The following two examples are equivalent:</p>
350+
<p>The following example using Hierarchies:
347351

348352
<pre>
349353
div, p {
@@ -356,6 +360,8 @@ <h2 id=nesting-selector><span class=secno>2. </span> The &amp; Selector</h2>
356360
}
357361
}</pre>
358362

363+
<p>...produces the same results as the following CSS:
364+
359365
<pre>
360366
div, p {font-size: 10px;}
361367
div .keyword, p .keyword {color: green;}

css3-hierarchies/Overview.src.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ <h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2>
4343

4444
<dt>Latest version:
4545
<!--<dd><a href="[LATEST]">[LATEST]</a>-->
46-
<dd><a href="http://www.w3.org/TR/css3-hierarchies/">http://www.w3.org/TR/css3-hierarchies/</a>
46+
<dd><a href="//www.w3.org/TR/css3-hierarchies/">http://www.w3.org/TR/css3-hierarchies/</a>
4747

4848
<dt>Editor's draft:
49-
<dd><a href="://dev.w3.org/csswg/css3-hierarchies/">http://dev.w3.org/csswg/css3-hierarchies/</a>
49+
<dd><a href="//dev.w3.org/csswg/css3-hierarchies/">http://dev.w3.org/csswg/css3-hierarchies/</a>
5050
<!--
5151
<dt>Previous version:
5252
<dd><a href="http://www.w3.org/PreviousVersionURI">
@@ -163,29 +163,32 @@ <h2 id="nesting-selector">
163163
<p>In order to accomplish nesting, this specification defines a new simple selector called the nesting selector, represented in selectors by the '&amp;' character. All complex selectors in the selector lists of nested rule sets must start with the nesting selector. The nesting selector represents the elements matches by the parent rule set's selector list.
164164

165165
<div class='example'>
166-
<p>The following two examples produce an equivalent result on all pages:
166+
<p>The following example using Hierarchies:
167167

168168
<pre>
169169
div {
170170
& .keyword {color: red;}
171171
&:hover {background-color: rgb(200, 255, 255);}
172172
}</pre>
173173

174+
<p>...produces the same results as the following CSS:
175+
174176
<pre>
175177
div .keyword {color:red;}
176178

177179
div:hover {background-color: rgb(200, 255, 255);}</pre>
178180
</div>
179181

180182
<div class='example'>
181-
182-
<p>The following two examples provide an equivalent result on all pages:
183+
<p>The following example using Hierarchies:
183184

184185
<pre>
185186
div, p {
186187
& .keyword, & .constant {color: red;}
187188
}</pre>
188189

190+
<p>...produces the same results as the following CSS:
191+
189192
<pre>
190193
div .keyword {color:red;}
191194
div .constant {color:red;}
@@ -196,7 +199,7 @@ <h2 id="nesting-selector">
196199
<p>Multiple style rules can be embedded within a style rule. Style rules can be embedded arbitrarily deeply. Embedded style rules and properties can co-exist.</p>
197200

198201
<div class='example'>
199-
<p>The following two examples are equivalent:</p>
202+
<p>The following example using Hierarchies:
200203

201204
<pre>
202205
div, p {
@@ -209,6 +212,8 @@ <h2 id="nesting-selector">
209212
}
210213
}</pre>
211214

215+
<p>...produces the same results as the following CSS:
216+
212217
<pre>
213218
div, p {font-size: 10px;}
214219
div .keyword, p .keyword {color: green;}

0 commit comments

Comments
 (0)