Skip to content

Commit 3d71bb9

Browse files
committed
[css2] put changes since CSS1 back into changes appendix
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401287
1 parent ba88bb2 commit 3d71bb9

1 file changed

Lines changed: 53 additions & 1 deletion

File tree

css2/changes.src

Lines changed: 53 additions & 1 deletion
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: 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 $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Appendix B: Changes from CSS1</TITLE>
@@ -75,6 +75,58 @@ semantics.
7575
</UL>
7676
-->
7777

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+
78130
</BODY>
79131
</HTML>
80132

0 commit comments

Comments
 (0)