@@ -92,9 +92,9 @@ <h2>Introduction</h2>
9292 < p > The value definition field of each CSS property can contain keywords,
9393 data types (which appear between ''<'' and ''> ''), and information on how
9494 they can be combined.
95- Generic data types (< code > <length> </ code > being the most widely used)
95+ Generic data types (< var > <length> </ var > being the most widely used)
9696 that can be used by many properties are described in this specification,
97- while more specific data types (e.g., < code > <spacing-limit> </ code > )
97+ while more specific data types (e.g., < var > <spacing-limit> </ var > )
9898 are described in the corresponding modules.
9999
100100< h3 id ="placement ">
@@ -122,19 +122,19 @@ <h3 id="component-types">
122122 which appear literally, without quotes (e.g. < code > auto</ code > )
123123
124124 < li > basic data types, which appear between ''<'' and ''>''
125- (e.g., < code > <length> </ code > , < code > <percentage> </ code > , etc.).
125+ (e.g., < var > <length> </ var > , < var > <percentage> </ var > , etc.).
126126
127127 < li > types that have the same range of values as a property bearing
128128 the same name
129- (e.g., < code > <'border-width'></ code > < code > <'background-attachment'></ code > , etc.).
129+ (e.g., < var > <'border-width'></ var > < var > <'background-attachment'></ var > , etc.).
130130 In this case, the type name is the property name (complete with quotes)
131131 between the brackets. Such a type does < em > not</ em >
132132 include < a href ="#common-keywords "> CSS-wide keywords</ a > such as ''inherit''.
133133
134134 < li > non-terminals that do not share the same name as a property. In this
135135 case, the non-terminal name appears between ''<'' and ''>'', as in
136- < code > <spacing-limit> </ code > . Notice the distinction between
137- < code > <border-width> </ code > and < code > <'border-width'></ code > :
136+ < var > <spacing-limit> </ var > . Notice the distinction between
137+ < var > <border-width> </ var > and < var > <'border-width'></ var > :
138138 the latter is defined as the value of the 'border-width' property,
139139 the former requires an explicit expansion elsewhere.
140140 The definition of a non-terminal is located near its first appearance
@@ -311,7 +311,7 @@ <h3 id="identifiers">
311311
312312 < p > Some properties accept arbitrary user-defined identifiers as a
313313 component value. This generic data type is denoted by
314- < dfn id ="identifier-value "> < code > <identifier> </ code > </ dfn > ,
314+ < dfn id ="identifier-value "> < var > <identifier> </ var > </ dfn > ,
315315 and represents any valid CSS < i > identifier</ i > that does not
316316 otherwise appear as a pre-defined keyword in that property's value
317317 definition.
@@ -322,7 +322,7 @@ <h3 id="identifiers">
322322< h3 id ="strings ">
323323Quoted Strings: the ''<string>'' type</ h3 >
324324
325- < p > Strings are denoted by < dfn id ="string-value "> < code > <string> </ code > </ dfn >
325+ < p > Strings are denoted by < dfn id ="string-value "> < var > <string> </ var > </ dfn >
326326 and consist of a sequence of characters delimited by double quotes or
327327 single quotes. They correspond to the < code > STRING</ code > token in the
328328 < a href ="http://www.w3.org/TR/CSS21/syndata.html#tokenization "> grammar</ a > .
@@ -363,7 +363,7 @@ <h3 id="urls">
363363 < p > A < dfn > URL</ dfn > is a pointer to a resource and is a
364364 < a href ="http://www.w3.org/TR/CSS21/syndata.html#uri "> specially-parsed</ a >
365365 < a href ="#functional-notation "> functional notation</ a > denoted by
366- < dfn id ="url-value "> < code > <url> </ code > </ dfn > . It corresponds to the
366+ < dfn id ="url-value "> < var > <url> </ var > </ dfn > . It corresponds to the
367367 < code > URI</ code > token in the
368368 < a href ="http://www.w3.org/TR/CSS21/syndata.html#tokenization "> grammar</ a > .
369369 [[!CSS21]]
@@ -376,8 +376,8 @@ <h3 id="urls">
376376 </ div >
377377
378378 < p class ="note "> Note that in some CSS syntactic contexts (as defined
379- by that context), a URL can be represented as a < code > <string> </ code >
380- rather than by < code > <URL> </ code > . An example of this is the
379+ by that context), a URL can be represented as a < var > <string> </ var >
380+ rather than by < var > <URL> </ var > . An example of this is the
381381 < a href ="http://www.w3.org/TR/CSS21/cascade.html#at-import "> ''@import'' rule</ a > .
382382
383383 < p > Parentheses, whitespace characters, single quotes (') and
@@ -406,12 +406,12 @@ <h3 id="urls">
406406 < pre > body { background: url("tile.png") }</ pre >
407407 < p > is located in a style sheet designated by the URL:</ p >
408408 < pre > http://www.example.org/style/basic.css</ pre >
409- < p > The background of the source document's < code > <body> </ code >
409+ < p > The background of the source document's < var > <body> </ var >
410410 will be tiled with whatever image is described by the resource
411411 designated by the URL:
412412 < pre > http://www.example.org/style/tile.png</ pre >
413413 < p > The same image will be used regardless of the URL of the source
414- document containing the < code > <body> </ code > .
414+ document containing the < var > <body> </ var > .
415415 </ div >
416416
417417< h2 id ="numeric-types ">
@@ -435,7 +435,7 @@ <h3 id="integers">
435435Integers: the ''<integer>'' type</ h3 >
436436
437437 < p > Integer values are denoted by
438- < dfn id ="integer-value "> < code > <integer> </ code > </ dfn > .
438+ < dfn id ="integer-value "> < var > <integer> </ var > </ dfn > .
439439 An < dfn > integer</ dfn > is one or more decimal digits ''0'' through ''9''
440440 and corresponds to a subset of the < code > NUMBER</ code > token in the
441441 < a href ="http://www.w3.org/TR/CSS21/syndata.html#tokenization "> grammar</ a > .
@@ -446,7 +446,7 @@ <h3 id="numbers">
446446Numbers: the ''<number>'' type</ h3 >
447447
448448 < p > Number values are denoted by
449- < dfn id ="number-value "> < code > <number> </ code > </ dfn > .
449+ < dfn id ="number-value "> < var > <number> </ var > </ dfn > .
450450 A < dfn > number</ dfn > is either an < i > integer</ i > , or zero or more decimal
451451 digits followed by a dot (.) followed by one or more decimal digits.
452452 It corresponds to the < code > NUMBER</ code > token in the
@@ -458,7 +458,7 @@ <h3 id="percentages">
458458Percentages: the ''<percentage>'' type</ h3 >
459459
460460 < p > A < dfn > percentage</ dfn > value is denoted by
461- < dfn id ="percentage-value "> < code > <percentage> </ code > </ dfn > ,
461+ < dfn id ="percentage-value "> < var > <percentage> </ var > </ dfn > ,
462462 consists of a < i > <number></ i > immediately followed by a percent
463463 sign ''%''. It corresponds to the < code > PERCENTAGE</ code > token in the
464464 < a href ="http://www.w3.org/TR/CSS21/syndata.html#tokenization "> grammar</ a > .
@@ -477,10 +477,10 @@ <h2 id="lengths">
477477Distance Units: the ''<length>'' type</ h2 >
478478
479479 < p > Lengths refer to distance measurements and are denoted by
480- < dfn id ="length-value "> < code > <length> </ code > </ dfn > in the
480+ < dfn id ="length-value "> < var > <length> </ var > </ dfn > in the
481481 property definitions.
482482 A length is a < i > dimension</ i > . A zero length may be represented
483- instead as the < code > <number> </ code > ''0''. (In other words,
483+ instead as the < var > <number> </ var > ''0''. (In other words,
484484 for zero lengths the unit identifier is optional.)</ p >
485485
486486 < p > A < dfn > dimension</ dfn > is a < i > number</ i > immediately followed by a
@@ -826,35 +826,35 @@ <h2 id="defined-elsewhere">
826826Data Types Defined Elsewhere</ h2 >
827827
828828< p > Some data types are defined in their own modules. The two common
829- ones are < code > <color> </ code > and < code > <image> </ code > .
829+ ones are < var > <color> </ var > and < var > <image> </ var > .
830830
831831< h3 id ="colors ">
832832Colors: the ''<color>'' type</ h3 >
833833
834- < p > The < dfn id ="color-value "> < code > <color> </ code > </ dfn > data type is
834+ < p > The < dfn id ="color-value "> < var > <color> </ var > </ dfn > data type is
835835 < a href ="http://www.w3.org/TR/CSS21/syndata.html#color-units "> defined</ a >
836836 in [[!CSS21]] and
837837 < a href ="http://www.w3.org/TR/css3-color/#colorunits "> extended</ a > in [[!CSS3COLOR]].
838- UAs that support CSS Color Level 3 or its successor must interpret < code > <color> </ code >
838+ UAs that support CSS Color Level 3 or its successor must interpret < var > <color> </ var >
839839 as defined therein.
840840
841841< h3 id ="images ">
842842Images: the ''<image>'' type</ h3 >
843843
844- < p > The < dfn id ="image-value "> < code > <image> </ code > </ dfn > data type is
845- defined herein as equivalent to < code > <url> </ code > .
844+ < p > The < dfn id ="image-value "> < var > <image> </ var > </ dfn > data type is
845+ defined herein as equivalent to < var > <url> </ var > .
846846 It is < a href ="http://www.w3.org/TR/css3-images/#image "> extended</ a > in
847847 [[!CSS3-IMAGES]]: UAs that support CSS Image Values Level 3 or its successor must interpret
848- < code > <image> </ code > as defined therein.
848+ < var > <image> </ var > as defined therein.
849849
850850< h3 id ="position ">
8518512D Positioning: the ''<position>'' type</ h3 >
852852
853- < p > The < dfn id ="position-value "> < code > <position> </ code > </ dfn > data type is
854- defined herein as equivalent to the < a href ="http://www.w3.org/TR/CSS21/colors.html#propdef-background-position "> < code > <'background-position'></ code > </ a > syntax defined in [[!CSS21]]. It specifies the position of a object area (e.g. background image) inside a positioning area (e.g. background positioning area).
853+ < p > The < dfn id ="position-value "> < var > <position> </ var > </ dfn > data type is
854+ defined herein as equivalent to the < a href ="http://www.w3.org/TR/CSS21/colors.html#propdef-background-position "> < var > <'background-position'></ var > </ a > syntax defined in [[!CSS21]]. It specifies the position of a object area (e.g. background image) inside a positioning area (e.g. background positioning area).
855855 It is < a href ="http://www.w3.org/TR/css3-background/#the-background-position "> extended</ a > in
856856 [[!CSS3BG]]: UAs that support CSS Backgrounds & Borders Level 3 or its successor must interpret
857- < code > <position> </ code > as defined therein.
857+ < var > <position> </ var > as defined therein.
858858
859859< h2 id ="functional-notation ">
860860Functional Notations</ h2 >
@@ -1053,8 +1053,8 @@ <h4 id='calc-type-checking'>
10531053 < p >
10541054 If the type of the result,
10551055 after resolving all subexpressions,
1056- is an integral < code > <number> </ code > ,
1057- the calc()'s resolved type is < code > <integer> </ code > .
1056+ is an integral < var > <number> </ var > ,
1057+ the calc()'s resolved type is < var > <integer> </ var > .
10581058
10591059< h4 id ='calc-range '>
10601060Range Checking</ h4 >
@@ -1083,7 +1083,7 @@ <h3 id="cycle-notation">
10831083
10841084 < pre > cycle( <value># )</ pre >
10851085
1086- < p > where < code > <value> </ code > is a CSS value that is valid where
1086+ < p > where < var > <value> </ var > is a CSS value that is valid where
10871087 the expression is placed. If any of the values inside are not valid,
10881088 then the entire ''cycle()'' expression is invalid.
10891089
0 commit comments