11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22<html lang="en">
3- <!-- $Id: cascade.src,v 2.0 1998-02-02 18:43:39 bbos Exp $ -->
3+ <!-- $Id: cascade.src,v 2.1 1998-02-18 11:45:31 howcome Exp $ -->
44<HEAD>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<TITLE>Assigning property values, Cascading, and Inheritance</TITLE>
@@ -44,7 +44,7 @@ in the property's definition.
4444
4545<P>Specified values may be "absolute" (e.g., the color value 'red' or
4646the constant value 'hidden') or "relative" (e.g., the variable value
47- 'auto', the font-related value 'em ', pixel values, percentage values,
47+ 'auto', the font-related value '1.2em ', pixel values, percentage values,
4848etc.). Each value must be transformed into a <span class="index-def"
4949title="computed value">computed value</span> according to
5050algorithms described in this specification.
@@ -56,7 +56,7 @@ percentage times the property's initial value.
5656<div class="example"><P>
5757For example, with an HTML document and the following style sheet:
5858<pre>
59- HTML {font-size: 120%}
59+ HTML { font-size: 120% }
6060</pre>
6161
6262<p>the computed value for <span
@@ -144,16 +144,16 @@ specified</a> percentage values are not inherited; only
144144the style sheet:
145145
146146<pre>
147- BODY {font-size: 10pt}
148- H1 {font-size: 120%}
147+ BODY { font-size: 10pt }
148+ H1 { font-size: 120% }
149149</pre>
150150
151151<p>and the document fragment:
152152
153153<pre class="html-example">
154- <BODY>
155- <H1>A <EM>large</EM> heading</H1>
156- </BODY>
154+ <BODY>
155+ <H1>A <EM>large</EM> heading</H1>
156+ </BODY>
157157</pre>
158158
159159<p>The <a href="#computed-value">computed value</a> of the <span
@@ -326,7 +326,7 @@ Some examples:
326326 LI {} /* a=0 b=0 c=1 -> specificity = 1 */
327327 UL LI {} /* a=0 b=0 c=2 -> specificity = 2 */
328328 UL OL+LI {} /* a=0 b=0 c=3 -> specificity = 3 */
329- / H1 [REL=up]/ {} /* a=0 b=1 c=1 -> specificity = 11 */
329+ H1 + [REL=up] {} /* a=0 b=1 c=1 -> specificity = 11 */
330330 UL OL LI.red {} /* a=0 b=1 c=3 -> specificity = 13 */
331331 LI.red.level {} /* a=0 b=2 c=1 -> specificity = 21 */
332332 #x34y {} /* a=1 b=0 c=0 -> specificity = 100 */
0 commit comments