Skip to content

Commit d7b6941

Browse files
committed
Fix a few typos and switch to more typical W3C-RFC2119 style.
1 parent fec5a5f commit d7b6941

2 files changed

Lines changed: 51 additions & 50 deletions

File tree

css3-conditional/Overview.html

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717

1818
<h1>CSS Conditional Rules Module Level 3</h1>
1919

20-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 4 June 2011</h2>
20+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 5 June 2011</h2>
2121

2222
<dl>
2323
<dt>This version:
2424

25-
<dd><a href="http://www.w3.org/TR/2011/ED-css3-conditional-20110604/">
26-
http://www.w3.org/TR/2011/ED-css3-conditional-20110604</a>
25+
<dd><a href="http://www.w3.org/TR/2011/ED-css3-conditional-20110605/">
26+
http://www.w3.org/TR/2011/ED-css3-conditional-20110605</a>
2727

2828
<dt>Latest version:
2929

@@ -224,7 +224,7 @@ <h3 id=context><span class=secno>1.1. </span>Background</h3>
224224
<code>@media</code> rule provides the ability to have media-specific style
225225
sheets, which is also provided by style sheet linking features such as
226226
<code>@import</code> and <code>&lt;link&gt;</code>. The restrictions on
227-
the contents of <code>@media</code> rules made them less useful; they
227+
the contents of <code>@media</code> rules made them less useful; they have
228228
forced authors using CSS features involving @-rules in media-specific
229229
style sheets to use separate style sheets for each medium.
230230

@@ -245,7 +245,7 @@ <h3 id=context><span class=secno>1.1. </span>Background</h3>
245245
mechanisms, and for other cases where a set of related styles needs to be
246246
conditioned on property support.
247247

248-
<p>The <code>@document</code> rule allows CSS to be condition on the page
248+
<p>The <code>@document</code> rule allows CSS to be conditioned on the page
249249
to which the style sheet is being applied. This allows users to apply
250250
styles to a particular page or group of pages, which greatly increases the
251251
power of user style sheets.
@@ -273,10 +273,8 @@ <h3 id=conventions><span class=secno>1.3. </span>Document Conventions</h3>
273273
NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”,
274274
“SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in the
275275
normative parts of this document are to be interpreted as described in RFC
276-
2119.
277-
<!--However, for readability, these words do not appear in all uppercase
278-
letters in this specification.-->
279-
276+
2119. However, for readability, these words do not appear in all uppercase
277+
letters in this specification.
280278

281279
<p>All of the text of this specification is normative except sections
282280
explicitly marked as non-normative, examples, and notes. <a
@@ -326,12 +324,13 @@ <h2 id=processing><span class=secno>2. </span>Processing of conditional
326324
</div>
327325

328326
<p>Each conditional group rule has a condition, which at any time evaluates
329-
to true or false. When the condition is true, CSS processors MUST apply
330-
the rules inside the group rule as though they were at the group rule's
331-
location; when the condition is false, CSS processors MUST not apply any
332-
of rules inside the group rule. The current state of the condition does
333-
not affect the CSS object model, in which the contents of the group rule
334-
always remain within the group rule.
327+
to true or false. When the condition is true, CSS processors
328+
<strong>must</strong> apply the rules inside the group rule as though they
329+
were at the group rule's location; when the condition is false, CSS
330+
processors <strong>must</strong> not apply any of rules inside the group
331+
rule. The current state of the condition does not affect the CSS object
332+
model, in which the contents of the group rule always remain within the
333+
group rule.
335334

336335
<p>This means that when multiple conditional group rules are nested, a rule
337336
inside of both of them applies only when all of the rules' conditions are
@@ -354,10 +353,10 @@ <h2 id=processing><span class=secno>2. </span>Processing of conditional
354353
or equal to 12 centimeters.</div>
355354

356355
<p>When the condition for a conditional group rule changes, CSS processors
357-
MUST reflect that the rules now apply or no longer apply, except for
358-
properties whose definitions define effects of computed values that
359-
persist past the lifetime of that value (such as for some properties in <a
360-
href="#CSS3-TRANSITIONS"
356+
<strong>must</strong> reflect that the rules now apply or no longer apply,
357+
except for properties whose definitions define effects of computed values
358+
that persist past the lifetime of that value (such as for some properties
359+
in <a href="#CSS3-TRANSITIONS"
361360
rel=biblioentry>[CSS3-TRANSITIONS]<!--{{CSS3-TRANSITIONS}}--></a> and <a
362361
href="#CSS3-ANIMATIONS"
363362
rel=biblioentry>[CSS3-ANIMATIONS]<!--{{!CSS3-ANIMATIONS}}--></a>).
@@ -408,13 +407,13 @@ <h2 id=contents><span class=secno>3. </span>Contents of conditional group
408407
forbidden to occur after some other types of rules should modify this
409408
<code>nested_statement</code> production to keep the grammar accurate.
410409

411-
<p>Style sheets MUST NOT use rules other than the allowed ones inside
412-
conditional group rules.
410+
<p>Style sheets <strong>must not</strong> use rules other than the allowed
411+
ones inside conditional group rules.
413412

414413
<h3 id=group-error><span class=secno>3.1. </span>Error handling</h3>
415414

416-
<p>Implementations MUST ignore rules that are not allowed within a group
417-
rule.
415+
<p>Implementations <strong>must</strong> ignore rules that are not allowed
416+
within a group rule.
418417

419418
<p class=issue>Define error handling rules for unknown things.
420419

@@ -437,7 +436,7 @@ <h2 id=at-media><span class=secno>4. </span>Media-specific style sheets:
437436

438437
<p>has the condition <code>print, (max-width: 600px)</code>, which is true
439438
for print media and for devices whose width is at most 600px. When either
440-
of this is true, the condition of the rule is true, and the rule
439+
of these is true, the condition of the rule is true, and the rule
441440
<code>#extra_navigation { display: none }</code> is applied.
442441
</div>
443442

@@ -709,10 +708,10 @@ <h2 id=at-document><span class=secno>6. </span>Document queries: the
709708
iframe/object/embed/img; it should probably not apply to the URL of an
710709
svg:use.
711710

712-
<p>Implementations MUST treat any unknown URL matching functions as a
713-
syntax error, and thus ignore the <code>@document</code> rule. <span
714-
class=issue>Should we instead have more complicated error handling
715-
rules?</span>
711+
<p>Implementations <strong>must</strong> treat any unknown URL matching
712+
functions as a syntax error, and thus ignore the <code>@document</code>
713+
rule. <span class=issue>Should we instead have more complicated error
714+
handling rules?</span>
716715

717716
<p>This extends the lexical scanner in the <a
718717
href="http://www.w3.org/TR/CSS21/grammar.html">Grammar of CSS 2.1</a> (<a

css3-conditional/Overview.src.html

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h3 id="context">Background</h3>
9898
have media-specific style sheets, which is also provided by style
9999
sheet linking features such as <code>@import</code> and
100100
<code>&lt;link&gt;</code>. The restrictions on the contents of
101-
<code>@media</code> rules made them less useful; they forced authors
101+
<code>@media</code> rules made them less useful; they have forced authors
102102
using CSS features involving @-rules in media-specific style sheets to
103103
use separate style sheets for each medium.</p>
104104

@@ -119,7 +119,7 @@ <h3 id="context">Background</h3>
119119
mechanisms, and for other cases where a set of related styles needs to
120120
be conditioned on property support.</p>
121121

122-
<p>The <code>@document</code> rule allows CSS to be condition on the
122+
<p>The <code>@document</code> rule allows CSS to be conditioned on the
123123
page to which the style sheet is being applied. This allows users to
124124
apply styles to a particular page or group of pages, which greatly
125125
increases the power of user style sheets.</p>
@@ -143,8 +143,8 @@ <h3 id="conventions">Document Conventions</h3>
143143
“MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”,
144144
“RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this
145145
document are to be interpreted as described in RFC 2119.
146-
<!--However, for readability, these words do not appear in all uppercase
147-
letters in this specification.-->
146+
However, for readability, these words do not appear in all uppercase
147+
letters in this specification.
148148

149149
<p>All of the text of this specification is normative except sections
150150
explicitly marked as non-normative, examples, and notes. [[!RFC2119]]</p>
@@ -188,11 +188,12 @@ <h2 id="processing">Processing of conditional group rules</h2>
188188

189189
<p>Each conditional group rule has a condition, which at any time
190190
evaluates to true or false. When the condition is true, CSS processors
191-
MUST apply the rules inside the group rule as though they were at the
192-
group rule's location; when the condition is false, CSS processors MUST
193-
not apply any of rules inside the group rule. The current state of the
194-
condition does not affect the CSS object model, in which the contents of
195-
the group rule always remain within the group rule.</p>
191+
<strong>must</strong> apply the rules inside the group rule as though
192+
they were at the group rule's location; when the condition is false, CSS
193+
processors <strong>must</strong> not apply any of rules inside the group
194+
rule. The current state of the condition does not affect the CSS object
195+
model, in which the contents of the group rule always remain within the
196+
group rule.</p>
196197

197198
<p>This means that when multiple conditional group rules are nested,
198199
a rule inside of both of them applies only when all of the rules'
@@ -214,11 +215,12 @@ <h2 id="processing">Processing of conditional group rules</h2>
214215
is applied to print media <em>and</em> the width of the page box is less
215216
than or equal to 12 centimeters.</div>
216217

217-
<p>When the condition for a conditional group rule changes,
218-
CSS processors MUST reflect that the rules now apply or no longer apply,
219-
except for properties whose definitions define effects of computed
220-
values that persist past the lifetime of that value (such as for some
221-
properties in [[CSS3-TRANSITIONS]] and [[!CSS3-ANIMATIONS]]).</p>
218+
<p>When the condition for a conditional group rule changes, CSS
219+
processors <strong>must</strong> reflect that the rules now apply or no
220+
longer apply, except for properties whose definitions define effects of
221+
computed values that persist past the lifetime of that value (such as
222+
for some properties in [[CSS3-TRANSITIONS]] and
223+
[[!CSS3-ANIMATIONS]]).</p>
222224

223225
<h2 id="contents">Contents of conditional group rules</h2>
224226

@@ -261,13 +263,13 @@ <h2 id="contents">Contents of conditional group rules</h2>
261263
this <code>nested_statement</code> production to keep the grammar
262264
accurate.</p>
263265

264-
<p>Style sheets MUST NOT use rules other than the allowed ones inside
266+
<p>Style sheets <strong>must not</strong> use rules other than the allowed ones inside
265267
conditional group rules.</p>
266268

267269
<h3 id="group-error">Error handling</h3>
268270

269-
<p>Implementations MUST ignore rules that are not allowed within a group
270-
rule.</p>
271+
<p>Implementations <strong>must</strong> ignore rules that are not
272+
allowed within a group rule.</p>
271273

272274
<p class="issue">Define error handling rules for unknown things.</p>
273275

@@ -286,7 +288,7 @@ <h2 id="at-media">Media-specific style sheets: the <code>@media</code> rule</h2
286288
}</pre>
287289
<p>has the condition <code>print, (max-width: 600px)</code>, which is
288290
true for print media and for devices whose width is at most 600px. When
289-
either of this is true, the condition of the rule is true, and the rule
291+
either of these is true, the condition of the rule is true, and the rule
290292
<code>#extra_navigation { display: none }</code> is applied.
291293
</div>
292294

@@ -547,10 +549,10 @@ <h2 id="at-document">Document queries: the <code>@document</code> rule</h2>
547549
iframe/object/embed/img; it should probably not apply to the URL of an
548550
svg:use.</p>
549551

550-
<p>Implementations MUST treat any unknown URL matching functions as a
551-
syntax error, and thus ignore the <code>@document</code> rule. <span
552-
class="issue">Should we instead have more complicated error handling
553-
rules?</span></p>
552+
<p>Implementations <strong>must</strong> treat any unknown URL matching
553+
functions as a syntax error, and thus ignore the <code>@document</code>
554+
rule. <span class="issue">Should we instead have more complicated error
555+
handling rules?</span></p>
554556

555557
<p>This extends the lexical scanner in the
556558
<a href="http://www.w3.org/TR/CSS21/grammar.html">Grammar of CSS 2.1</a>

0 commit comments

Comments
 (0)