@@ -284,7 +284,7 @@ <h3><a name="q6">4.1.3 Characters and case</a></h3>
284284 href ="selector.html "> selectors</ a > ) can contain only the
285285 characters [A-Za-z0-9] and ISO 10646 characters U+00A1 and higher,
286286 plus the hyphen (-) and the underscore (_); they cannot start with
287- a digit or a hyphen followed by a digit.
287+ a digit, or a hyphen followed by a digit.
288288 Only properties, values, units, pseudo-classes,
289289 pseudo-elements, and at-rules may < em > start</ em > with a hyphen (-); other
290290 identifiers (e.g. element names, classes, or IDs) may not.
@@ -376,8 +376,8 @@ <h3>4.1.5 <span class="index-def" title="at-rule">
376376< p > CSS 2.1 user agents must < span class ="index-inst " title ="ignore "> < a name ="x10 "
377377href ="#ignore "> ignore</ a > </ span > any < a
378378href ="cascade.html#at-import "> '@import'</ a > rule that occurs inside a < a
379- href ="#block "> block</ a > or after any valid rule other than an @charset or
380- an @import rule.
379+ href ="#block "> block</ a > or after any valid rule other than an < a name =" x11 " > < span
380+ class =" index-inst " > @charset </ span > </ a > or an @import rule.
381381</ p >
382382
383383< div class ="illegal-example "> < P style ="display:none "> Illegal example(s):</ P > < p >
@@ -390,7 +390,7 @@ <h3>4.1.5 <span class="index-def" title="at-rule">
390390</ pre >
391391
392392< p > The second '@import' is illegal according to CSS2.1. The CSS 2.1 parser
393- < span class ="index-inst " title ="ignore "> < a name ="x11 " href ="#ignore "> ignores</ a > </ span >
393+ < span class ="index-inst " title ="ignore "> < a name ="x12 " href ="#ignore "> ignores</ a > </ span >
394394the whole at-rule, effectively reducing the style sheet to:
395395</ p >
396396< pre >
@@ -415,14 +415,14 @@ <h3>4.1.5 <span class="index-def" title="at-rule">
415415
416416< h3 > 4.1.6 < a name ="block "> Blocks</ a > </ h3 >
417417
418- < p > A < a name ="x12 "> < span class ="index-inst " title ="block "> < em > block</ em > </ span > </ a >
418+ < p > A < a name ="x13 "> < span class ="index-inst " title ="block "> < em > block</ em > </ span > </ a >
419419starts with a left curly brace ({) and ends with the matching right
420420curly brace (}). In between there may be any characters, except that
421421parentheses (( )), brackets ([ ]) and braces ({ }) must
422422always occur in
423423matching pairs and may be nested. Single (') and double quotes (")
424424 must also occur in matching pairs, and characters between them
425- are parsed as a < a name ="x13 "> < span class ="index-inst " title ="string "> string</ span > </ a > .
425+ are parsed as a < a name ="x14 "> < span class ="index-inst " title ="string "> string</ span > </ a > .
426426See < a href ="#tokenization "> Tokenization</ a > above for the definition
427427of a string.
428428</ p >
@@ -447,33 +447,33 @@ <h3><a name="q10">4.1.7 Rule sets, declaration blocks, and selectors</a></h3>
447447< p > A rule set (also called "rule") consists of a selector followed by
448448a declaration block.
449449</ p >
450- < p > A < a name ="x14 "> < span class ="index-def "
450+ < p > A < a name ="x15 "> < span class ="index-def "
451451title ="declaration-block "> < dfn > declaration-block</ dfn > </ span > </ a > (also
452452called a {}-block in the following text) starts with a left curly
453453brace ({) and ends with the matching right curly brace (}). In between
454454there must be a list of zero or more semicolon-separated (;)
455455declarations.
456456</ p >
457- < p > The < a name ="x15 "> < span class ="index-def "
457+ < p > The < a name ="x16 "> < span class ="index-def "
458458title ="selector "> < em > selector</ em > </ span > </ a > (see also the section on < a
459459href ="selector.html "> selectors</ a > ) consists of everything up to (but
460460not including) the first left curly brace ({). A selector always goes
461461together with a {}-block. When a user agent can't parse the selector (i.e., it
462- is not valid CSS 2.1), it must < span class ="index-inst " title ="ignore "> < a name ="x16 "
462+ is not valid CSS 2.1), it must < span class ="index-inst " title ="ignore "> < a name ="x17 "
463463href ="#ignore "> ignore</ a > </ span > the {}-block as well.
464464</ p >
465465< p > CSS 2.1 gives a special meaning to the comma (,) in
466466selectors. However, since it is not known if the comma may acquire
467467other meanings in future versions of CSS, the whole statement should
468- be < span class ="index-inst " title ="ignore "> < a name ="x17 "
468+ be < span class ="index-inst " title ="ignore "> < a name ="x18 "
469469href ="#ignore "> ignored</ a > </ span > if there is an error anywhere in the
470470selector, even though the rest of the selector may look reasonable in
471471CSS 2.1.
472472</ p >
473473< div class =illegal-example > < P style ="display:none "> Illegal example(s):</ P >
474474< p > For example, since the "&" is not a valid token in a CSS 2.1
475475selector, a CSS 2.1 user agent must
476- < span class ="index-inst " title ="ignore "> < a name ="x18 " href ="#ignore "> ignore</ a > </ span >
476+ < span class ="index-inst " title ="ignore "> < a name ="x19 " href ="#ignore "> ignore</ a > </ span >
477477the whole second line, and not set the color of H3 to red:
478478</ p >
479479< pre >
@@ -504,9 +504,9 @@ <h3><a name="q10">4.1.7 Rule sets, declaration blocks, and selectors</a></h3>
504504< h3 > 4.1.8 < a name ="declaration "> Declarations</ a > and < a
505505name ="properties "> properties</ a > </ h3 >
506506
507- < p > A < a name ="x19 "> < span class ="index-def "
507+ < p > A < a name ="x20 "> < span class ="index-def "
508508title ="declaration "> < dfn > declaration</ dfn > </ span > </ a > is either empty or
509- consists of a < a name ="x20 "> < span class ="index-inst "
509+ consists of a < a name ="x21 "> < span class ="index-inst "
510510title ="property "> property</ span > </ a > , followed by a colon (:), followed by
511511a value. Around each of these there may be < a
512512href ="#whitespace "> whitespace</ a > .
@@ -550,12 +550,12 @@ <h3>4.1.8 <a name="declaration">Declarations</a> and <a
550550braces may be nested. Inside the quotes, characters are parsed as a
551551string.
552552</ p >
553- < p > The syntax of < a name ="x21 "> < span class ="index-def " title ="value "> values</ span > </ a >
553+ < p > The syntax of < a name ="x22 "> < span class ="index-def " title ="value "> values</ span > </ a >
554554is specified separately for each property, but in any case, values are
555555built from identifiers, strings, numbers, lengths, percentages, URIs, and
556556colors.
557557</ p >
558- < p > A user agent must < span class ="index-inst " title ="ignore "> < a name ="x22 "
558+ < p > A user agent must < span class ="index-inst " title ="ignore "> < a name ="x23 "
559559href ="#ignore "> ignore</ a > </ span > a declaration with an invalid property
560560name or an invalid value. Every CSS 2.1 property has its own syntactic
561561and semantic restrictions on the values it accepts.
@@ -573,7 +573,7 @@ <h3>4.1.8 <a name="declaration">Declarations</a> and <a
573573< p > The second declaration on the first line has an invalid value
574574'12pt'. The second declaration on the second line contains an
575575undefined property 'font-vendor'. The CSS 2.1 parser will < span
576- class ="index-inst " title ="ignore "> < a name ="x23 " href ="#ignore "> ignore</ a > </ span > these
576+ class ="index-inst " title ="ignore "> < a name ="x24 " href ="#ignore "> ignore</ a > </ span > these
577577declarations, effectively reducing the style sheet to:
578578</ p >
579579< pre class ="example ">
@@ -585,7 +585,7 @@ <h3>4.1.8 <a name="declaration">Declarations</a> and <a
585585
586586< h3 > 4.1.9 < a name ="comments "> Comments</ a > </ h3 >
587587
588- < p > < a name ="x24 "> < span class ="index-inst " title ="comments "> Comments </ span > </ a > begin
588+ < p > < a name ="x25 "> < span class ="index-inst " title ="comments "> Comments </ span > </ a > begin
589589with the characters "/*" and end with the characters "*/". They may
590590occur anywhere between tokens,
591591and their contents have no influence on the rendering. Comments may
@@ -621,7 +621,7 @@ <h2>4.2 <a name="parsing-errors">Rules for handling parsing
621621
622622< ul >
623623< li > < strong > Unknown properties.</ strong > User agents must < span
624- class ="index-inst " title ="ignore "> < a name ="x26 " href ="#ignore "> ignore</ a > </ span > a < a
624+ class ="index-inst " title ="ignore "> < a name ="x27 " href ="#ignore "> ignore</ a > </ span > a < a
625625href ="syndata.html#declaration "> declaration</ a > with an unknown
626626property. For example, if the style sheet is:
627627
@@ -646,7 +646,7 @@ <h2>4.2 <a name="parsing-errors">Rules for handling parsing
646646</ pre >
647647
648648A CSS 2.1 parser would honor the first rule and
649- < span class ="index-inst " title ="ignore "> < a name ="x27 " href ="#ignore "> ignore</ a > </ span >
649+ < span class ="index-inst " title ="ignore "> < a name ="x28 " href ="#ignore "> ignore</ a > </ span >
650650the rest, as if the style sheet had been:
651651
652652< pre class ="example ">
@@ -676,7 +676,7 @@ <h2>4.2 <a name="parsing-errors">Rules for handling parsing
676676
677677
678678< li > < strong > Invalid at-keywords.</ strong > User agents must < span
679- class ="index-inst " title ="ignore "> < a name ="x28 " href ="#ignore "> ignore</ a > </ span > an
679+ class ="index-inst " title ="ignore "> < a name ="x29 " href ="#ignore "> ignore</ a > </ span > an
680680invalid at-keyword together with everything following it, up to and
681681including the next semicolon (;) or block ({...}), whichever
682682comes first. For example, consider the following:
@@ -694,8 +694,8 @@ <h2>4.2 <a name="parsing-errors">Rules for handling parsing
694694
695695< p > The '@three-dee' at-rule is not part of CSS 2.1. Therefore, the whole
696696at-rule (up to, and including, the third right curly brace) is < span
697- class ="index-inst " title ="ignore "> < a name ="x29 " href ="#ignore "> ignored.</ a > </ span > A
698- CSS 2.1 user agent < span class ="index-inst " title ="ignore "> < a name ="x30 "
697+ class ="index-inst " title ="ignore "> < a name ="x30 " href ="#ignore "> ignored.</ a > </ span > A
698+ CSS 2.1 user agent < span class ="index-inst " title ="ignore "> < a name ="x31 "
699699href ="#ignore "> ignores</ a > </ span > it, effectively reducing the style sheet
700700to:</ p >
701701
@@ -760,7 +760,7 @@ <h3>4.3.2 <a name="length-units">Lengths</a></h3>
760760</ p >
761761
762762< p > < a name ="absrel-units "> There are two types of length units:
763- relative and absolute.</ a > < a name ="x34 "> < span class ="index-def " title ="relative
763+ relative and absolute.</ a > < a name ="x35 "> < span class ="index-def " title ="relative
764764units "> < em > Relative length</ em > </ span > </ a > units specify a length relative
765765to another length property. Style sheets that use relative units will
766766more easily scale from one medium to another (e.g., from a computer
@@ -822,7 +822,7 @@ <h3>4.3.2 <a name="length-units">Lengths</a></h3>
822822resolution of the viewing device, i.e., most often a computer
823823display. If the pixel density of the output device is very different
824824from that of a typical computer display, the user agent should rescale
825- pixel values. It is recommended that the < a name ="x39 "> < span class ="index-def "
825+ pixel values. It is recommended that the < a name ="x40 "> < span class ="index-def "
826826title ="reference pixel|pixel "> < em > reference pixel</ em > </ span > </ a > be the
827827visual angle of one pixel on a device with a pixel density of 96dpi
828828and a distance from the reader of an arm's length. For a nominal arm's
@@ -880,7 +880,7 @@ <h3>4.3.2 <a name="length-units">Lengths</a></h3>
880880</ pre >
881881</ div >
882882
883- < p > < a name ="x41 "> < span class ="index-def " title ="absolute length "> < em > Absolute
883+ < p > < a name ="x42 "> < span class ="index-def " title ="absolute length "> < em > Absolute
884884length</ em > </ span > </ a > units are only useful when the physical properties
885885of the output medium are known. The absolute units are:
886886</ p >
@@ -912,7 +912,7 @@ <h3>4.3.3 <a name="percentage-units">Percentages</a></h3>
912912name ="value-def-percentage "
913913class ="value-def "> <percentage></ a > </ span > in this specification)
914914is a < span class ="index-inst "
915- title ="<number> "> < a name ="x43 " href ="syndata.html#value-def-number " class ="noxref "> < span
915+ title ="<number> "> < a name ="x44 " href ="syndata.html#value-def-number " class ="noxref "> < span
916916class ="value-inst-number "> <number></ span > </ a > </ span > immediately
917917followed by '%'.
918918</ p >
@@ -944,13 +944,13 @@ <h3>4.3.3 <a name="percentage-units">Percentages</a></h3>
944944
945945< h3 > 4.3.4 < a name ="uri "> URL + URN = URI</ a > </ h3 >
946946
947- < p > < a name ="x44 "> < span class ="index-def " title ="Uniform Resource Locator (URL)|URL
947+ < p > < a name ="x45 "> < span class ="index-def " title ="Uniform Resource Locator (URL)|URL
948948(Uniform Resource Locator) "> URLs</ span > </ a > (Uniform Resource Locators,
949949see < a href ="refs.html#ref-RFC1738 " rel ="biblioentry " class ="noxref "> < span class ="normref "> [RFC1738]</ span > </ a > and < a href ="refs.html#ref-RFC1808 " rel ="biblioentry " class ="noxref "> < span class ="normref "> [RFC1808]</ span > </ a > ) provide the address of a resource on
950- the Web. Another way of identifying resources is called < a name ="x46 "> < span
950+ the Web. Another way of identifying resources is called < a name ="x47 "> < span
951951class ="index-def " title ="URN (Uniform Resource Name)|Uniform Resource
952952Name (URN) "> URN</ span > </ a > (Uniform Resource Name). Together they are
953- called < a name ="x48 "> < span class ="index-def " title ="Resource Identifier (URI)|URI
953+ called < a name ="x49 "> < span class ="index-def " title ="Resource Identifier (URI)|URI
954954(Uniform Resource Identifier) "> URIs</ span > </ a > (Uniform Resource
955955Identifiers, see < a href ="refs.html#ref-URI " rel ="biblioentry " class ="noxref "> < span class ="normref "> [URI]</ span > </ a > ). This specification uses the term URI.
956956</ p >
@@ -1025,7 +1025,7 @@ <h3>4.3.5 <a name="counter">Counters</a></h3>
10251025class ="propinst-counter-increment "> 'counter-increment'</ span > </ a > and
10261026< a href ="generate.html#propdef-counter-reset " class ="noxref "> < span class ="propinst-counter-reset "> 'counter-reset'</ span > </ a >
10271027properties). To refer to the value of a counter, the notation
1028- < a name ="x52 "> < span class ="index-def " title ="counter() ">
1028+ < a name ="x53 "> < span class ="index-def " title ="counter() ">
10291029'counter(<identifier>)'</ span > </ a > or 'counter(<identifier>,
10301030<list-style-type>)' is used. The default style is 'decimal'.
10311031</ p >
@@ -1194,7 +1194,7 @@ <h3>4.3.7 <a name="strings">Strings</a></h3>
11941194</ pre >
11951195</ div >
11961196
1197- < p > A string cannot directly contain a < a name ="x55 "> < span class ="index-inst "
1197+ < p > A string cannot directly contain a < a name ="x56 "> < span class ="index-inst "
11981198title ="newline "> newline</ span > </ a > .
11991199To include a newline in a string, use an escape representing the line feed
12001200character in Unicode (U+000A), such as "\A" or "\00000a".
@@ -1242,7 +1242,7 @@ <h2><a name="q23">4.4 CSS style sheet representation</a></h2>
12421242
12431243< p > A CSS style sheet is a sequence of characters from the Universal
12441244Character Set (see < a href ="refs.html#ref-ISO10646 " rel ="biblioentry " class ="noxref "> < span class ="normref "> [ISO10646]</ span > </ a > ). For transmission and
1245- storage, these characters must be < a name ="x56 "> < span class ="index-def "
1245+ storage, these characters must be < a name ="x57 "> < span class ="index-def "
12461246title ="character encoding "> encoded</ span > </ a > by a character encoding that
12471247supports the set of characters available in US-ASCII (e.g., UTF-8, ISO
124812488859-x, SHIFT JIS, etc.). For a good introduction to character sets
@@ -1255,29 +1255,30 @@ <h2><a name="q23">4.4 CSS style sheet representation</a></h2>
12551255character encoding of the whole document.
12561256</ p >
12571257< p > When a style sheet resides in a separate file, user agents must
1258- observe the following < a name ="x57 "> < span class ="index-inst " title ="character
1258+ observe the following < a name ="x58 "> < span class ="index-inst " title ="character
12591259encoding::user agent's determination of "> priorities</ span > </ a > when
1260- determining a style sheet's < a name ="x58 "> < span class ="index-inst " title ="character
1260+ determining a style sheet's < a name ="x59 "> < span class ="index-inst " title ="character
12611261encoding::default|default::character encoding "> character
12621262encoding</ span > </ a > (from highest priority to lowest):
12631263</ p >
12641264< ol >
12651265< li > An HTTP "charset" parameter in a "Content-Type" field
12661266(or similar parameters in other protocols)</ li >
1267- < li > BOM and/or @charset (see below)</ li >
1267+ < li > < a name ="x61 "> < span class ="index-inst "> BOM</ span > </ a > and/or < a name ="x62 "> < span
1268+ class ="index-inst "> @charset</ span > </ a > (see below)</ li >
12681269< li > < code > <link charset=""></ code > or other metadata from the linking mechanism (if any)</ li >
12691270< li > charset of referring stylesheet or document (if any)</ li >
12701271< li > Assume UTF-8</ li >
12711272</ ol >
12721273
1273- < p > Authors using an @charset rule must place the rule at the very
1274- beginning of the style sheet, preceded by no characters. (If a byte
1275- order mark is appropriate for the encoding used, it may precede the
1276- @charset rule.)
1274+ < p > Authors using an < a name =" x63 " > < span class =" index-inst " > @charset</ span > </ a > rule must
1275+ place the rule at the very beginning of the style sheet, preceded by
1276+ no characters. (If a byte order mark is appropriate for the encoding
1277+ used, it may precede the @charset rule.)
12771278</ p >
12781279
1279- < p > After " @charset", authors specify the name of a character encoding
1280- (in quotes). For example:
1280+ < p > After < a name =" x64 " > < span class =" index-def " > " @charset"</ span > </ a > , authors specify
1281+ the name of a character encoding (in quotes). For example:
12811282</ p >
12821283
12831284< pre class ="example "> @charset "ISO-8859-1";</ pre >
@@ -1293,10 +1294,11 @@ <h2><a name="q23">4.4 CSS style sheet representation</a></h2>
12931294registry.
12941295</ p >
12951296
1296- < p > User agents must support at least the UTF-8 encoding.
1297+ < p > User agents must support at least the < a name ="x65 "> < span
1298+ class ="index-inst "> UTF-8</ span > </ a > encoding.
12971299
12981300< p > User agents must ignore any @charset rule not at the beginning of the
1299- style sheet. When user agents detect the character encoding using the
1301+ style sheet. When user agents detect the character encoding using the
13001302BOM and/or the @charset rule, they should follow the following rules:
13011303</ p >
13021304
0 commit comments