Skip to content

Commit 8620280

Browse files
committed
markup tweak
1 parent c030b70 commit 8620280

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

css3-values/Overview.src.html

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -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 ''&lt;'' and ''>''), and information on how
9494
they can be combined.
95-
Generic data types (<code>&lt;length&gt;</code> being the most widely used)
95+
Generic data types (<var>&lt;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>&lt;spacing-limit&gt;</code>)
97+
while more specific data types (e.g., <var>&lt;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 ''&lt;'' and ''&gt;''
125-
(e.g., <code>&lt;length&gt;</code>, <code>&lt;percentage&gt;</code>, etc.).
125+
(e.g., <var>&lt;length></var>, <var>&lt;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>&lt;'border-width'&gt;</code> <code>&lt;'background-attachment'&gt;</code>, etc.).
129+
(e.g., <var>&lt;'border-width'&gt;</var> <var>&lt;'background-attachment'&gt;</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 ''&lt;'' and ''&gt;'', as in
136-
<code>&lt;spacing-limit&gt;</code>. Notice the distinction between
137-
<code>&lt;border-width&gt;</code> and <code>&lt;'border-width'&gt;</code>:
136+
<var>&lt;spacing-limit></var>. Notice the distinction between
137+
<var>&lt;border-width></var> and <var>&lt;'border-width'&gt;</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>&lt;identifier&gt;</code></dfn>,
314+
<dfn id="identifier-value"><var>&lt;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">
323323
Quoted Strings: the ''&lt;string&gt;'' type</h3>
324324

325-
<p>Strings are denoted by <dfn id="string-value"><code>&lt;string&gt;</code></dfn>
325+
<p>Strings are denoted by <dfn id="string-value"><var>&lt;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>&lt;url&gt;</code></dfn>. It corresponds to the
366+
<dfn id="url-value"><var>&lt;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>&lt;string&gt;</code>
380-
rather than by <code>&lt;URL&gt;</code>. An example of this is the
379+
by that context), a URL can be represented as a <var>&lt;string></var>
380+
rather than by <var>&lt;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 (&#39;) 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>&lt;body&gt;</code>
409+
<p>The background of the source document's <var>&lt;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>&lt;body></code>.
414+
document containing the <var>&lt;body></var>.
415415
</div>
416416

417417
<h2 id="numeric-types">
@@ -435,7 +435,7 @@ <h3 id="integers">
435435
Integers: the ''&lt;integer&gt;'' type</h3>
436436

437437
<p>Integer values are denoted by
438-
<dfn id="integer-value"><code>&lt;integer&gt;</code></dfn>.
438+
<dfn id="integer-value"><var>&lt;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">
446446
Numbers: the ''&lt;number&gt;'' type</h3>
447447

448448
<p>Number values are denoted by
449-
<dfn id="number-value"><code>&lt;number&gt;</code></dfn>.
449+
<dfn id="number-value"><var>&lt;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">
458458
Percentages: the ''&lt;percentage&gt;'' type</h3>
459459

460460
<p>A <dfn>percentage</dfn> value is denoted by
461-
<dfn id="percentage-value"><code>&lt;percentage&gt;</code></dfn>,
461+
<dfn id="percentage-value"><var>&lt;percentage></var></dfn>,
462462
consists of a <i>&lt;number&gt;</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">
477477
Distance Units: the ''&lt;length&gt;'' type</h2>
478478

479479
<p>Lengths refer to distance measurements and are denoted by
480-
<dfn id="length-value"><code>&lt;length&gt;</code></dfn> in the
480+
<dfn id="length-value"><var>&lt;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>&lt;number&gt;</code> ''0''. (In other words,
483+
instead as the <var>&lt;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">
826826
Data Types Defined Elsewhere</h2>
827827

828828
<p>Some data types are defined in their own modules. The two common
829-
ones are <code>&lt;color&gt;</code> and <code>&lt;image&gt;</code>.
829+
ones are <var>&lt;color></var> and <var>&lt;image></var>.
830830

831831
<h3 id="colors">
832832
Colors: the ''&lt;color&gt;'' type</h3>
833833

834-
<p>The <dfn id="color-value"><code>&lt;color&gt;</code></dfn> data type is
834+
<p>The <dfn id="color-value"><var>&lt;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>&lt;color&gt;</code>
838+
UAs that support CSS Color Level 3 or its successor must interpret <var>&lt;color></var>
839839
as defined therein.
840840

841841
<h3 id="images">
842842
Images: the ''&lt;image&gt;'' type</h3>
843843

844-
<p>The <dfn id="image-value"><code>&lt;image&gt;</code></dfn> data type is
845-
defined herein as equivalent to <code>&lt;url&gt;</code>.
844+
<p>The <dfn id="image-value"><var>&lt;image></var></dfn> data type is
845+
defined herein as equivalent to <var>&lt;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>&lt;image&gt;</code> as defined therein.
848+
<var>&lt;image></var> as defined therein.
849849

850850
<h3 id="position">
851851
2D Positioning: the ''&lt;position&gt;'' type</h3>
852852

853-
<p>The <dfn id="position-value"><code>&lt;position&gt;</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>&lt;'background-position'&gt;</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>&lt;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>&lt;'background-position'&gt;</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 &amp; Borders Level 3 or its successor must interpret
857-
<code>&lt;position&gt;</code> as defined therein.
857+
<var>&lt;position></var> as defined therein.
858858

859859
<h2 id="functional-notation">
860860
Functional 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>&lt;number></code>,
1057-
the calc()&apos;s resolved type is <code>&lt;integer></code>.
1056+
is an integral <var>&lt;number></var>,
1057+
the calc()&apos;s resolved type is <var>&lt;integer></var>.
10581058

10591059
<h4 id='calc-range'>
10601060
Range Checking</h4>
@@ -1083,7 +1083,7 @@ <h3 id="cycle-notation">
10831083

10841084
<pre>cycle( &lt;value&gt;# )</pre>
10851085

1086-
<p>where <code>&lt;value&gt;</code> is a CSS value that is valid where
1086+
<p>where <var>&lt;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

Comments
 (0)