@@ -8089,9 +8089,7 @@ <h3>9.3.2 <a name="position-props">Box offsets</a>: <a href="visuren.html#propde
80898089<tr valign=baseline><td><em>Inherited:</em> <td>no
80908090<tr valign=baseline><td><em>Percentages:</em> <td>refer to height of containing block
80918091<tr valign=baseline><td><em>Media:</em> <td><a href="media.html#visual-media-group" class="noxref">visual</a>
8092- <tr valign=baseline><td><em>Computed value:</em> <td>for 'position:relative', see section
8093- <a href="visuren.html#relative-positioning">Relative
8094- Positioning.</a> For 'position:static', 'auto'. Otherwise: if
8092+ <tr valign=baseline><td><em>Computed value:</em> <td>for 'position:static', 'auto'. Otherwise: if
80958093 specified as a length, the corresponding absolute length; if
80968094 specified as a percentage, the specified value; otherwise, 'auto'.
80978095</table>
@@ -8119,9 +8117,7 @@ <h3>9.3.2 <a name="position-props">Box offsets</a>: <a href="visuren.html#propde
81198117<tr valign=baseline><td><em>Inherited:</em> <td>no
81208118<tr valign=baseline><td><em>Percentages:</em> <td>refer to width of containing block
81218119<tr valign=baseline><td><em>Media:</em> <td><a href="media.html#visual-media-group" class="noxref">visual</a>
8122- <tr valign=baseline><td><em>Computed value:</em> <td>for 'position:relative', see section
8123- <a href="visuren.html#relative-positioning">Relative
8124- Positioning.</a> For 'position:static', 'auto'. Otherwise: if
8120+ <tr valign=baseline><td><em>Computed value:</em> <td>for 'position:static', 'auto'. Otherwise: if
81258121 specified as a length, the corresponding absolute length; if
81268122 specified as a percentage, the specified value; otherwise,
81278123 'auto'.
@@ -8148,9 +8144,7 @@ <h3>9.3.2 <a name="position-props">Box offsets</a>: <a href="visuren.html#propde
81488144<tr valign=baseline><td><em>Inherited:</em> <td>no
81498145<tr valign=baseline><td><em>Percentages:</em> <td>refer to height of containing block
81508146<tr valign=baseline><td><em>Media:</em> <td><a href="media.html#visual-media-group" class="noxref">visual</a>
8151- <tr valign=baseline><td><em>Computed value:</em> <td>for 'position:relative', see section
8152- <a href="visuren.html#relative-positioning">Relative
8153- Positioning.</a> For 'position:static', 'auto'. Otherwise: if
8147+ <tr valign=baseline><td><em>Computed value:</em> <td>for 'position:static', 'auto'. Otherwise: if
81548148 specified as a length, the corresponding absolute length; if
81558149 specified as a percentage, the specified value; otherwise, 'auto'.
8156
77FB
8150</table>
@@ -8176,9 +8170,7 @@ <h3>9.3.2 <a name="position-props">Box offsets</a>: <a href="visuren.html#propde
81768170<tr valign=baseline><td><em>Inherited:</em> <td>no
81778171<tr valign=baseline><td><em>Percentages:</em> <td>refer to width of containing block
81788172<tr valign=baseline><td><em>Media:</em> <td><a href="media.html#visual-media-group" class="noxref">visual</a>
8179- <tr valign=baseline><td><em>Computed value:</em> <td>for 'position:relative', see section
8180- <a href="visuren.html#relative-positioning">Relative
8181- Positioning.</a> For 'position:static', 'auto'. Otherwise: if
8173+ <tr valign=baseline><td><em>Computed value:</em> <td>for 'position:static', 'auto'. Otherwise: if
81828174 specified as a length, the corresponding absolute length; if
81838175 specified as a percentage, the specified value; otherwise,
81848176 'auto'.
@@ -8451,16 +8443,16 @@ <h3>9.4.3 <a name="relative-positioning">Relative positioning</a></h3>
84518443box(es) horizontally, without changing their size. 'left' moves the
84528444boxes to the right, and 'right' moves them to the left. Since boxes
84538445are not split or stretched as a result of 'left' or 'right', the
8454- computed values are always: left = -right.
8446+ used values are always: left = -right.
84558447</p>
84568448<p>If both 'left' and 'right' are 'auto' (their initial values), the
8457- computed values are '0' (i.e., the boxes stay in their original
8449+ used values are '0' (i.e., the boxes stay in their original
84588450position).
84598451</p>
8460- <p>If 'left' is 'auto', its computed value is minus the value of 'right'
8452+ <p>If 'left' is 'auto', its used value is minus the value of 'right'
84618453(i.e., the boxes move to the left by the value of 'right').
84628454</p>
8463- <p>If 'right' is specified as 'auto', its computed value is minus the
8455+ <p>If 'right' is specified as 'auto', its used value is minus the
84648456value of 'left'.
84658457</p>
84668458<p>If neither 'left' nor 'right' is 'auto', the position is
@@ -8481,10 +8473,10 @@ <h3>9.4.3 <a name="relative-positioning">Relative positioning</a></h3>
84818473element(s) up or down without changing their size. 'top' moves the
84828474boxes down, and 'bottom' moves them up. Since boxes
84838475are not split or stretched as a result of 'top' or 'bottom', the
8484- computed values are always: top = -bottom.
8485- If both are 'auto', their computed values are both '0'. If one of them is
8476+ used values are always: top = -bottom.
8477+ If both are 'auto', their used values are both '0'. If one of them is
84868478'auto', it becomes the negative of the other. If neither is 'auto',
8487- 'bottom' is ignored (i.e., the computed value of 'bottom' will be
8479+ 'bottom' is ignored (i.e., the used value of 'bottom' will be
84888480minus the value of 'top').
84898481</p>
84908482
@@ -9550,7 +9542,7 @@ <h3>9.9.1 <a name="z-index">Specifying the stack level</a>: the <a href="visuren
95509542 <li>the in-flow, inline-level, non-positioned descendants, including
95519543 inline tables and inline blocks.
95529544
9553- <li>the stacking contexts with stack level 0, and the positioned
9545+ <li>the child stacking contexts with stack level 0, and the positioned
95549546 descendants with 'z-index: auto'.
95559547
95569548 <li>the child stacking contexts with positive stack levels (least
@@ -11378,11 +11370,12 @@ <h3>10.8.1 <a name="leading">Leading and half-leading</a></h3>
1137811370is composed of <a href="visuren.html#inline-level">inline-level</a>
1137911371elements, 'line-height' specifies the <em>minimal</em> height of line boxes
1138011372within the element. The minimum height consists of a minimum height above
11381- the block's baseline and a minimum depth below it, exactly as if each
11373+ the baseline and a minimum depth below it, exactly as if each
1138211374line box starts with a <a name="strut">zero-width inline box with the
11383- block 's font and line height properties (what T<sub>E</sub>X calls a
11384- "strut").</a>
11375+ element 's font and line height properties.</a> We call that imaginary
11376+ box a "strut." (The name is inspired by TeX.).
1138511377</p>
11378+
1138611379<p>The height and depth of the font above and below the baseline are
1138711380assumed to be metrics that are contained in the font. (For more
1138811381details, see CSS level 3.)
@@ -14422,7 +14415,7 @@ <h2>15.2 <a name="algorithm">Font matching algorithm</a></h2>
1442214415<ol>
1442314416
1442414417<li>The User Agent makes (or accesses) a database of relevant CSS 2.1
14425- properties of all the fonts of which the UA is aware.
14418+ properties of all the fonts of which the UA is aware.
1442614419If there are two fonts with exactly the same properties, the user
1442714420agent selects one of them.
1442814421</li>
@@ -14471,7 +14464,7 @@ <h2>15.2 <a name="algorithm">Font matching algorithm</a></h2>
1447114464font labeled as 'small-caps', (2) a font in which the small caps are
1447214465synthesized, or (3) a font where all lowercase letters are replaced by
1447314466upper case letters. A small-caps font may be synthesized by
14474- electronically scaling uppercase letters from a normal font.
14467+ electronically scaling uppercase letters from a normal font.
1447514468'normal' matches a font's normal (non-small-caps) variant. A font cannot fail to have a normal variant. A font
1447614469 that is only available as small-caps shall be selectable as either a 'normal' face or a 'small-caps' face.
1447714470</li>
@@ -14482,7 +14475,7 @@ <h2>15.2 <a name="algorithm">Font matching algorithm</a></h2>
1448214475UA-dependent margin of tolerance. (Typically, sizes for scalable fonts
1448314476are rounded to the nearest whole pixel, while the tolerance for
1448414477bitmapped fonts could be as large as 20%.) Further computations, e.g.,
14485- by 'em' values in other properties, are based on
14478+ by 'em' values in other properties, are based on
1448614479the computed value of 'font-size'.
1448714480</li>
1448814481
@@ -14558,23 +14551,39 @@ <h2>15.3 <a name="font-family-prop">Font family</a>: the <a href="fonts.html#pro
1455814551</dd>
1455914552</dl>
1456014553
14561- <p>If an unquoted font family name contains
14562- parentheses, brackets, and/or braces, they must still be
14563- escaped per CSS grammar rules. Similarly, quotation marks (both single and double), semicolons,
14564- exclamation marks, commas, and leading slashes within unquoted font family names must be escaped.
14565- Font names containing any such characters or white space should be quoted:
14566- </p>
14554+ <p>Font family names must either be given quoted as <a
14555+ href="syndata.html#strings">strings,</a> or unquoted as a sequence of
14556+ one or more <a
14557+ href="syndata.html#value-def-identifier">identifiers.</a> This means
14558+ most punctuation characters and digits at the start of each token must
14559+ be escaped in unquoted font family names.
14560+
14561+ <p>For example, the following declarations are invalid:
14562+
14563+ <pre>
14564+ font-family: Red/Black, sans-serif;
14565+ font-family: "Lucida" Grande, sans-serif;
14566+ font-family: Ahem!, sans-serif;
14567+ font-family: test@foo, sans-serif;
14568+ font-family: #POUND, sans-serif;
14569+ font-family: Hawaii 5-0, sans-serif;
14570+ </pre>
14571+
14572+ <p>If a sequence of identifiers is given as a font family name, the
14573+ computed value is the name converted to a string by joining all the
14574+ identifiers in the sequence by single spaces.
14575+
14576+ <p>To avoid mistakes in escaping, it is recommended to quote font
14577+ family names that contain white space, digits, or punctuation
14578+ characters other than hyphens:
1456714579
1456814580<pre>
1456914581body { font-family: "New Century Schoolbook", serif }
14570-
14571- <BODY STYLE="font-family: 'My own font ', fantasy">
14582+
14583+ <BODY STYLE="font-family: '21st Century ', fantasy">
1457214584</pre>
1457314585
14574- <p>If quoting is omitted, any white space characters before and after
14575- the font name are ignored and any sequence of white space characters
14576- inside the font name is converted to a single space.
14577- Font family <em>names</em> that happen to be the same as a keyword
14586+ <p>Font family <em>names</em> that happen to be the same as a keyword
1457814587value ('inherit', 'serif', 'sans-serif', 'monospace', 'fantasy', and
1457914588'cursive') must be quoted to prevent confusion with the keywords with
1458014589the same names. The keywords 'initial' and 'default' are reserved for
@@ -14811,7 +14820,7 @@ <h2>15.5 <a name="small-caps">Small-caps</a>: the
1481114820replacement for a small-caps font.
1481214821</p>
1481314822<p>The following example results in an 'H3' element in small-caps,
14814- with any emphasized words in oblique, and any emphasized words within
14823+ with any emphasized words in oblique, and any emphasized words within
1481514824an 'H3' oblique small-caps:
1481614825</p>
1481714826<pre>
@@ -14872,7 +14881,7 @@ <h2>15.6 <a name="font-boldness">Font boldness</a>: the
1487214881values are names that are descriptive of the "weight" of a font. There
1487314882is no accepted, universal meaning to these weight names. Their primary
1487414883role is to distinguish faces of differing darkness within a single
14875- font family. Usage across font families is quite variant; for example,
14884+ font family. Usage across font families is quite variant; for example,
1487614885a font that one might think of as being bold might be described as
1487714886being <em>Regular, Roman, Book, Medium, Semi-</em> or <em>DemiBold,
1487814887Bold,</em> or <em>Black,</em> depending on how black the "normal" face
@@ -15030,8 +15039,8 @@ <h2>15.7 <a name="font-size-props">Font size</a>: the <a href="fonts.html#propde
1503015039<dd>An <absolute-size> keyword is an index to a table of font
1503115040sizes computed and kept by the UA. Possible values are:
1503215041<p> [ xx-small | x-small | small | medium | large | x-large | xx-large ]</p>
15033- <p>The following table provides user agent guidelines for the absolute-size
15034- mapping to HTML heading and absolute font-sizes. The 'medium' value is
15042+ <p>The following table provides user agent guidelines for the absolute-size
15043+ mapping to HTML heading and absolute font-sizes. The 'medium' value is
1503515044 the user's preferred font size and is used as the reference middle value.</p>
1503615045
1503715046<table border="1" style="border-collapse: collapse" width="73%" id="AutoNumber2">
@@ -15069,10 +15078,10 @@ <h2>15.7 <a name="font-size-props">Font size</a>: the <a href="fonts.html#propde
1506915078to another.
1507015079</p>
1507115080
15072- <p class="note"><em><strong>Note 1.</strong> To preserve readability, a UA applying
15081+ <p class="note"><em><strong>Note 1.</strong> To preserve readability, a UA applying
1507315082these guidelines should nevertheless avoid creating font-size resulting
1507415083 in less than 9 pixels per EM unit on a computer display.</em></p>
15075-
15084+
1507615085<p class="note"><em><strong>Note 2.</strong> In CSS1, the suggested
1507715086scaling factor between adjacent indexes was 1.5, which user experience
1507815087proved to be too large. In CSS2, the suggested scaling factor for a
@@ -15157,10 +15166,10 @@ <h2>15.8 <a name="font-shorthand">Shorthand font property</a>: the <a href="font
1515715166typographical shorthand notation to set multiple properties related to
1515815167fonts.
1515915168</p>
15160- <p>All font-related properties are first reset to their initial values,
15161- including those listed in the preceding paragraph.
15162- Then, those properties that are given explicit values in the
15163- <a href="fonts.html#propdef-font" class="noxref"><span class="propinst-font">'font'</span></a> shorthand are set to those values.
15169+ <p>All font-related properties are first reset to their initial values,
15170+ including those listed in the preceding paragraph.
15171+ Then, those properties that are given explicit values in the
15172+ <a href="fonts.html#propdef-font" class="noxref"><span class="propinst-font">'font'</span></a> shorthand are set to those values.
1516415173For a definition of allowed and initial values, see the previously defined properties.
1516515174</p>
1516615175<pre>
@@ -15206,7 +15215,7 @@ <h2>15.8 <a name="font-shorthand">Shorthand font property</a>: the <a href="font
1520615215</dl>
1520715216
1520815217<p>System fonts may only be set as a whole; that is, the font
15209- family, size, weight, style, etc. are all set at the same time.
15218+ family, size, weight, style, etc. are all set at the same time.
1521015219These values may then be altered individually if desired. If no
1521115220font with the indicated characteristics exists on a given platform,
1521215221the user agent should either intelligently substitute (e.g., a smaller
@@ -15250,7 +15259,7 @@ <h2>15.8 <a name="font-shorthand">Shorthand font property</a>: the <a href="font
1525015259 font-weight: 600;
1525115260 font-size: 9px;
1525215261 line-height: normal;
15253- }
15262+ }
1525415263</pre>
1525515264
1525615265</div>
@@ -15395,9 +15404,9 @@ <h2>16.2 <a name="alignment-prop">Alignment:</a> the <a href="text.html#propdef-
1539515404class="propinst-word-spacing">'word-spacing'</span></a>.)
1539615405</p>
1539715406<p>
15398- If the computed value of text-align is 'justify' while the computed
15399- value of white-space is 'pre' or 'pre-line ', the actual value of
15400- text-align is set to the initial value .
15407+ If an element has a computed value for 'white-space' of 'pre' or
15408+ 'pre-wrap ', then neither the glyphs of that element's text content nor
15409+ its white space may be altered for the purpose of justification .
1540115410</p>
1540215411
1540315412<div class="example"><P style="display:none">Example(s):</P><p>
0 commit comments