Skip to content

Commit 5a4fe20

Browse files
committed
[css-syntax] Typo and formatting fixes.
1 parent 871876c commit 5a4fe20

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

css-syntax/Overview.src.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ <h2 id='syntax-description'>
120120
for style rules, it's a selector which specifies what elements the declarations will apply to.
121121
Each declaration has a name,
122122
followed by a colon and the declaration value,
123-
and finished with a semicolon.
123+
and finishes with a semicolon.
124124

125125
<div class='example'>
126126
<p>
@@ -175,7 +175,7 @@ <h2 id='syntax-description'>
175175
}</pre>
176176

177177
<p>
178-
The ''@page'' <i>at-rule</i> consists of an optional page selector (the ":left" pseudoclass),
178+
The ''@page'' <i>at-rule</i> consists of an optional page selector (the '':left'' pseudoclass),
179179
followed by a block of properties that apply to the page when printed.
180180
In this way, it's very similar to a normal <i>style rule</i>,
181181
except that its properties don't apply to any "element",
@@ -194,7 +194,7 @@ <h2 id='syntax-description'>
194194
</div>
195195

196196
<p>
197-
Property names and <i>at-rule</i> names are always <b>idents</b>,
197+
Property names and <i>at-rule</i> names are always <b>identifiers</b>,
198198
which have to start with a letter or a hyphen followed by a letter,
199199
and then can contain letters, numbers, hyphens, or underscores.
200200
You can include any character at all,
@@ -240,10 +240,10 @@ <h3>
240240
Once an at-rule starts,
241241
nothing is invalid from the parser's standpoint;
242242
it's all part of the at-rule's prelude.
243-
Encountering a semicolon (;) ends the at-rule immediately,
244-
while encountering an opening curly-brace ({) starts the at-rule's body.
243+
Encountering a semicolon 〈;〉 ends the at-rule immediately,
244+
while encountering an opening curly-brace 〈{〉 starts the at-rule's body.
245245
The at-rule seeks forward, matching blocks (content surrounded by (), {}, or [])
246-
until it finds a closing curly-brace (}) that isn't matched by anything else
246+
until it finds a closing curly-brace 〈}〉 that isn't matched by anything else
247247
or inside of another block.
248248
The contents of the at-rule are then interpreted according to the at-rule's own grammar.
249249

@@ -462,7 +462,7 @@ <h2>
462462
〈ident〉, 〈function〉, 〈at-keyword〉, 〈hash〉, 〈string〉, and 〈url〉 tokens have a value composed of zero or more characters.
463463
Additionally, hash tokens have a type flag set to either "id" or "unrestricted". The type flag defaults to "unrestricted" if not otherwise set.
464464
〈delim〉 tokens have a value composed of a single character.
465-
〈number〉, 〈percentage〉, and 〈dimension〉 tokens have a representation composed of 1 or more character, and a numeric value.
465+
〈number〉, 〈percentage〉, and 〈dimension〉 tokens have a representation composed of one or more character, and a numeric value.
466466
〈number〉 and 〈dimension〉 tokens additionally have a type flag set to either "integer" or "number". The type flag defaults to "integer" if not otherwise set.
467467
〈dimension〉 tokens additionally have a unit composed of one or more characters.
468468
〈unicode-range〉 tokens have a range of characters.
@@ -2100,7 +2100,7 @@ <h2>
21002100
<dd>
21012101
An at-rule has a name,
21022102
a prelude consisting of a list of component values,
2103-
and an optional value consisting of an simple {} block.
2103+
and an optional value consisting of a simple {} block.
21042104

21052105
<p class='note'>
21062106
This specification places no limits on what an at-rule's value may contain.
@@ -2155,7 +2155,7 @@ <h2>
21552155

21562156
<dt><dfn>simple block</dfn>
21572157
<dd>
2158-
A simple block has an associated token (either a 〈[〉, (, or 〈{〉)
2158+
A simple block has an associated token (either a 〈[〉, 〈(〉, or 〈{〉)
21592159
and a value consisting of a list of component values.
21602160
</dl>
21612161

@@ -3018,13 +3018,13 @@ <h2 id='defining-grammars'>
30183018
<li>〈Ident〉s (such as ''auto'', ''disc'', etc.)
30193019
<li>〈at-keyword〉 tokens, which are written as an @ character followed by the token's name, like "@media".
30203020
<li>〈function〉s, which are written as the function name followed by a ( character, like "translate(".
3021-
<li>The 〈colon〉 (written as <code>:</code>), 〈comma〉 (written as <code>,</code>), 〈semicolon〉 (written as <code>;</code>), (, ), 〈{〉, and 〈}〉s.
3021+
<li>The 〈colon〉 (written as <code>:</code>), 〈comma〉 (written as <code>,</code>), 〈semicolon〉 (written as <code>;</code>), 〈(〉, 〈)〉, 〈{〉, and 〈}〉s.
30223022
</ul>
30233023

30243024
<p>
30253025
〈delim〉s are written with their value enclosed in single quotes.
30263026
For example, a 〈delim〉 containing the "+" character is written as <code>'+'</code>.
3027-
Similarly, the [ and 〈]〉s must be written in single quotes,
3027+
Similarly, the 〈[〉 and 〈]〉s must be written in single quotes,
30283028
as they're used by the syntax of the grammar itself to group clauses.
30293029

30303030
<p>
@@ -3069,7 +3069,7 @@ <h3 id='declaration-rule-list'>
30693069

30703070
<p>
30713071
Similarly, the <dfn><var>&lt;rule-list></var></dfn> production represents a list of rules,
3072-
and may only be used in grammars as the shole value in a block.
3072+
and may only be used in grammars as the sole value in a block.
30733073
It represents that the contents of the block must be parsed using the <i>consume a list of rules</i> algorithm.
30743074

30753075
<p>

0 commit comments

Comments
 (0)