Skip to content

Commit e91f76d

Browse files
committed
[css2] indentatinon examples
changes "em" to "1em" to make it a valid value fixed an example which used old syntax for selectors --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40967
1 parent b26c675 commit e91f76d

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

css2/cascade.src

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
4646
the 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,
4848
etc.). Each value must be transformed into a <span class="index-def"
4949
title="computed value">computed value</span> according to
5050
algorithms described in this specification.
@@ -56,7 +56,7 @@ percentage times the property's initial value.
5656
<div class="example"><P>
5757
For 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
144144
the 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-
&lt;BODY&gt;
155-
&lt;H1&gt;A &lt;EM&gt;large&lt;/EM&gt; heading&lt;/H1&gt;
156-
&lt;/BODY&gt;
154+
&lt;BODY&gt;
155+
&lt;H1&gt;A &lt;EM&gt;large&lt;/EM&gt; heading&lt;/H1&gt;
156+
&lt;/BODY&gt;
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 -&gt; specificity = 1 */
327327
UL LI {} /* a=0 b=0 c=2 -&gt; specificity = 2 */
328328
UL OL+LI {} /* a=0 b=0 c=3 -&gt; specificity = 3 */
329-
/H1 [REL=up]/ {} /* a=0 b=1 c=1 -&gt; specificity = 11 */
329+
H1 + [REL=up] {} /* a=0 b=1 c=1 -&gt; specificity = 11 */
330330
UL OL LI.red {} /* a=0 b=1 c=3 -&gt; specificity = 13 */
331331
LI.red.level {} /* a=0 b=2 c=1 -&gt; specificity = 21 */
332332
#x34y {} /* a=1 b=0 c=0 -&gt; specificity = 100 */

0 commit comments

Comments
 (0)