|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: changes.src,v 2.10 1998-03-17 01:12:25 ijacobs Exp $ --> |
| 3 | +<!-- $Id: changes.src,v 2.11 1998-03-20 21:57:22 howcome Exp $ --> |
4 | 4 | <HEAD> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <TITLE>Appendix B: Changes from CSS1</TITLE> |
@@ -75,6 +75,58 @@ semantics. |
75 | 75 | </UL> |
76 | 76 | --> |
77 | 77 |
|
| 78 | +<H2><a name="changes-from-css1">Semantic changes from CSS1</a></H2> |
| 79 | + |
| 80 | +<P>While all CSS1 style sheets are valid CSS2 style sheets, there are |
| 81 | +a few cases where the CSS1 style sheet will have a different meaning |
| 82 | +when interperted as a CSS2 style sheet. Most changes are due to |
| 83 | +implementation experience feeding back into the specification, but |
| 84 | +there are also some error corrections. |
| 85 | + |
| 86 | +<UL> |
| 87 | + |
| 88 | +<LI>In CSS2 <A HREF="syndata.html#color-units">color values</A> are clipped |
| 89 | +with regard to the device gamut, not with regard to the sRGB gamut as |
| 90 | +in CSS1. |
| 91 | + |
| 92 | +<LI>CSS1 simply said that 'margin-right' was ignored if the both |
| 93 | +'margin-left' and 'width' were set. In CSS2 the choice between |
| 94 | +relaxing 'margin-right' or 'margin-left' depends on the writing direction. |
| 95 | + |
| 96 | +<LI>In CSS1, several properties (e.g., 'padding') had values referring |
| 97 | +to the width of the parent element. This was an error; the value |
| 98 | +should always refer to the width of a block-level element and this |
| 99 | +specification reflects this by introducing the term "containing block". |
| 100 | + |
| 101 | +<LI>The initial value of 'display' is 'inline' in CSS2, not 'block' as |
| 102 | +in CSS1. |
| 103 | + |
| 104 | +<LI>In CSS1, the 'clear' property applied to all elements. This was an |
| 105 | +error, and the property only applies to block-level elements in CSS2. |
| 106 | + |
| 107 | +<LI>In CSS1, <span class="index-inst" |
| 108 | +title="pseudo-classes:::link|:link|link |
| 109 | +(pseudo-class)">':link'</span>, <span class="index-inst" |
| 110 | +title="pseudo-classes:::visited|:visited|visited |
| 111 | +(pseudo-class)">':visited'</span> and <span class="index-inst" |
| 112 | +title="pseudo-classes:::active|:active|active |
| 113 | +(pseudo-class)">':active'</span> were mutually exclusive; in CSS2, <a |
| 114 | +href="selector.html#dynamic-pseudo-classes">':active'</a> can occur |
| 115 | +together with <a href="selector.html#link-pseudo-classes">':link' or |
| 116 | +':visited'</a>. |
| 117 | + |
| 118 | +<LI>The suggested scaling factor between adjacent <span |
| 119 | +class="propinst-font-size">'font-size'</span> indexes in the table of font |
| 120 | +sizes has been reduced from 1.5 to 1.2. |
| 121 | + |
| 122 | +<li>Please also consult the section on the <a |
| 123 | +href="grammar.html#tokenizer-diffs">differences between the CSS1 |
| 124 | +and CSS2 tokenizer</a>. |
| 125 | +</UL> |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
78 | 130 | </BODY> |
79 | 131 | </HTML> |
80 | 132 |
|
0 commit comments