Skip to content

Commit ee09174

Browse files
committed
Better name for placement section, and give examples of start-of-sheet @-rules.
1 parent 592179f commit ee09174

2 files changed

Lines changed: 19 additions & 15 deletions

File tree

css3-conditional/Overview.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
170170
<li><a href="#contents"><span class=secno>3. </span>Contents of
171171
conditional group rules</a>
172172

173-
<li><a href="#use"><span class=secno>4. </span>Use of conditional group
174-
rules</a>
173+
<li><a href="#use"><span class=secno>4. </span>Placement of conditional
174+
group rules</a>
175175

176176
<li><a href="#at-media"><span class=secno>5. </span>Media-specific style
177177
sheets: the &lsquo;<code class=css>@media</code>&rsquo; rule</a>
@@ -383,10 +383,10 @@ <h2 id=contents><span class=secno>3. </span>Contents of conditional group
383383
<p>A group rule body is allowed to contain rulesets and any @-rules that
384384
are allowed at the top level of a style sheet before and after a ruleset.
385385
This means that @-rules that must occur at the beginning of the style
386-
sheet, such as &lsquo;<code class=css>@charset</code>&rsquo;, &lsquo;<code
386+
sheet (such as &lsquo;<code class=css>@charset</code>&rsquo;, &lsquo;<code
387387
class=css>@import</code>&rsquo;, and &lsquo;<code
388-
class=css>@namespace</code>&rsquo; are not allowed inside of conditional
389-
group rules. Conditional group rules can be nested.
388+
class=css>@namespace</code>&rsquo; rules) are not allowed inside of
389+
conditional group rules. Conditional group rules can be nested.
390390

391391
<p>In terms of the grammar, this specification defines the following
392392
productions for use in the grammar of conditional group rules:
@@ -428,17 +428,20 @@ <h2 id=contents><span class=secno>3. </span>Contents of conditional group
428428
(Rule sets, declaration blocks, and selectors)</a> of <a href="#CSS21"
429429
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>.
430430

431-
<h2 id=use><span class=secno>4. </span>Use of conditional group rules</h2>
431+
<h2 id=use><span class=secno>4. </span>Placement of conditional group rules</h2>
432432

433433
<p>Conditional group rules are allowed at the top-level of a style sheet,
434434
and inside other conditional group rules. CSS processors
435435
<strong>must</strong> process such rules as <a
436436
href="#processing">described above</a>.
437437

438-
<p>Any rules that are not allowed after a ruleset are also not allowed
439-
after a conditional group rule. Therefore, style sheets <strong>must
440-
not</strong> place such rules after a conditional group rules, and CSS
441-
processors <strong>must</strong> ignore such rules.
438+
<p>Any rules that are not allowed after a ruleset (e.g., &lsquo;<code
439+
class=css>@charset</code>&rsquo;, &lsquo;<code
440+
class=css>@import</code>&rsquo;, or &lsquo;<code
441+
class=css>@namespace</code>&rsquo; rules) are also not allowed after a
442+
conditional group rule. Therefore, style sheets <strong>must not</strong>
443+
place such rules after a conditional group rules, and CSS processors
444+
<strong>must</strong> ignore such rules.
442445

443446
<h2 id=at-media><span class=secno>5. </span>Media-specific style sheets:
444447
the &lsquo;<code class=css>@media</code>&rsquo; rule</h2>

css3-conditional/Overview.src.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ <h2 id="contents">Contents of conditional group rules</h2>
236236
<p>A group rule body is allowed to contain rulesets and any @-rules that
237237
are allowed at the top level of a style sheet before and after a
238238
ruleset. This means that @-rules that must occur at the beginning of
239-
the style sheet, such as '@charset', '@import',
240-
and '@namespace' are not allowed inside of conditional group
239+
the style sheet (such as '@charset', '@import',
240+
and '@namespace' rules) are not allowed inside of conditional group
241241
rules. Conditional group rules can be nested.</p>
242242

243243
<p>In terms of the grammar, this specification defines the following
@@ -276,15 +276,16 @@ <h2 id="contents">Contents of conditional group rules</h2>
276276
href="http://www.w3.org/TR/CSS21/syndata.html#rule-sets">section 4.1.7
277277
(Rule sets, declaration blocks, and selectors)</a> of [[!CSS21]].</p>
278278

279-
<h2 id="use">Use of conditional group rules</h2>
279+
<h2 id="use">Placement of conditional group rules</h2>
280280

281281
<p>Conditional group rules are allowed at the top-level of a style
282282
sheet, and inside other conditional group rules. CSS processors
283283
<strong>must</strong> process such rules as <a
284284
href="#processing">described above</a>.</p>
285285

286-
<p>Any rules that are not allowed after a ruleset are also not allowed
287-
after a conditional group rule. Therefore, style sheets <strong>must
286+
<p>Any rules that are not allowed after a ruleset (e.g., ''@charset'',
287+
''@import'', or ''@namespace'' rules) are also not allowed after a
288+
conditional group rule. Therefore, style sheets <strong>must
288289
not</strong> place such rules after a conditional group rules, and CSS
289290
processors <strong>must</strong> ignore such rules.</p>
290291

0 commit comments

Comments
 (0)