Skip to content

Commit 3a97343

Browse files
committed
[css2] Added changes/clarifications for chapter 5 (Selectors).
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402742
1 parent 7c4b3c2 commit 3a97343

1 file changed

Lines changed: 120 additions & 14 deletions

File tree

css2/changes.src

Lines changed: 120 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: changes.src,v 2.63 2007-07-06 06:08:53 fantasai Exp $ -->
3+
<!-- $Id: changes.src,v 2.64 2007-07-09 10:39:49 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Changes</TITLE>
@@ -110,6 +110,79 @@ Error Conditions</a></h3>
110110
<p>This section changed to say that error handling <em>is</em> specified
111111
in most cases.</p>
112112

113+
114+
115+
116+
<!-- Chapter 5 -->
117+
118+
<h3 id="c5.8.1"><a href="selector.html#q10">Section 5.8.1 Matching
119+
attributes and attribute values</a></h3>
120+
121+
<p>RFC&nbsp;3066 replaces RFC&nbsp;1766.
122+
123+
<h3 id="c5.8.3"><a href="selector.html#class-html">Section 5.8.3 Class
124+
selectors</a></h3>
125+
126+
<p>Class selectors are allowed for other formats than HTML.
127+
128+
<p>Added a note about matching classes in formats with multiple class
129+
attributes per element. The behavior is non-normative, because, at the
130+
time of writing, there exist no such formats.
131+
132+
<h3 id="c5.9"><a href="selector.html#id-selectors">Section 5.9 ID
133+
selectors</a></h3>
134+
135+
<p>Specified how to match elements with two or more ID attributes.
136+
137+
<h3 id="c5.10"><a href="selectors.html#pseudo-elements">Section 5.10
138+
Pseudo-elements and pseudo-classes</a></h3>
139+
140+
<p>Removed exception for HTML UAs that allowed them (and only them) to
141+
ignore ':first-letter' and ':first-line'.
142+
143+
<h3 id="c5.11.2"><a href="selectors.html#link-pseudo-classes">5.11.2
144+
The link pseudo-classes: :link and :visited</a></h3>
145+
146+
<p>UAs may return a :visited link to :link status at some point. (This
147+
was previously a note, but is now normative.)
148+
149+
<p>Added a note about privacy concerns with link pseudo classes and
150+
allowed UAs to treat :visited as :link.
151+
152+
<h3 id=c5.11.4"><a href="selectors.html#lang">Section 5.11.4 The
153+
language pseudo-class: :lang</a></h3>
154+
155+
<p>The identifier C in ':lang(C)' need not be a valid language code,
156+
but it must not be empty.
157+
158+
<h3 id="c5.12.1"><a href="selector.html#first-line-pseudo">Section
159+
5.12.1 The :first-line pseudo-element</a></h3>
160+
161+
<p>':first-line' also applies to inline blocks, table captions and
162+
table cells. Added a definition of "first formatted line" to make the
163+
rules about which line is the first line more precise.
164+
165+
<p>UAs are no longer forbidden from applying more properties than the
166+
given list.
167+
168+
<h3 id="c5.12.2"><a href="selector.html#first-letter">Section 5.12.2
169+
The :first-letter pseudo-element</a></h3>
170+
171+
<p>More precise definition of first letter. Added rules for cases
172+
where the first letter is in an inline block or table cell. Added
173+
rules for cases when preceding punctuation is in a different element
174+
from the first letter itself.
175+
176+
<p>UAs may apply other properties to first letters than the given
177+
list.
178+
179+
<p>Unicode character classes Pi and Pf added to the definition of
180+
punctuation.
181+
182+
183+
184+
<!-- Chapter 6 -->
185+
113186
<h3 id="c6.1"><a href="cascade.html#q1">Section 6.1 Specified, computed, and actual values</a></h3>
114187

115188
<p>Redefined "computed value" and created the concept of "used value"
@@ -1138,24 +1211,57 @@ clarification.</p>
11381211
to section 4.1.6 on strings, which must have matching single or
11391212
double quotes around them.
11401213

1141-
<h3 id="x55"><a href="selector.html#descendant-selectors">Section 5.5</a></h3>
11421214

1143-
<p>Near the end of the section, the text 'Note the whitespace on
1144-
either side of the "*"' was misleading. The note was not meant to
1145-
imply that whitespace is required on both sides of the "*" (since the
1146-
grammar does not require it in this case) but that one may use
1147-
whitespace in this case.
11481215

1149-
<h3 id="x56"><a href="selector.html#id-selectors">Section 5.9 ID selectors</a></h3>
1216+
<!-- Chapter 5 -->
1217+
1218+
<h3 id="r5.1"><a href="selector.html#q1">Section 5.1 Pattern matching</a></h3>
1219+
1220+
<p>Added note about terminology change ("simple selector") between
1221+
CSS2 and CSS3.
1222+
1223+
<h3 id="r5.7"><a href="selector.html#adjacent-selectors">Section 5.7
1224+
Adjacent sibling selectors</a></h3>
1225+
1226+
<p>Clarified that text nodes and comments do not affect whether a
1227+
sibling selector matches.
1228+
1229+
<h3 id="r5.8.2"><a href="selector.html#q11">Section 5.8.2 Default
1230+
attribute values in DTDs</a></h3>
1231+
1232+
<p>Clarified that rules about default attribute values are the same,
1233+
whether the default is specified in a DTD or by other means.
1234+
1235+
<h3 id="r5.9"><a href="selector.html#id-selectors">Section 5.9 ID
1236+
selectors</a></h3>
1237+
1238+
<p>Added a note that it depends on the document format which
1239+
attributes are ID attributes.
1240+
1241+
<h3 id="r5.11.3"><a
1242+
href="selectors.html#dynamic-pseudo-classes">Section 5.11.3 The
1243+
dynamic pseudo-classes: :hover, :active, and :focus</a></h3>
1244+
1245+
<p>Clarified that CSS&nbsp;2.1 does <em>not</em> define if the parent
1246+
of an element that matches ':active' or ':hover' itself also matches
1247+
':active' or ':hover'.
1248+
1249+
<p>Added note that, in CSS1, ':active' only applies to links.
1250+
1251+
<h3 id=c5.11.4"><a href="selectors.html#lang">Section 5.11.4 The
1252+
language pseudo-class: :lang</a></h3>
1253+
1254+
<p>Added a note to show the differences between ':lang(xx)' and
1255+
'[lang=xx]'.
1256+
1257+
<h3 id="r5.12.2"><a href="selector.html#first-letter">Section 5.12.2
1258+
The :first-letter pseudo-element</a></h3>
1259+
1260+
<p>Clarified that digits can also be first letter.
11501261

1151-
<p>The word "precedence" in the last but one paragraph should have been
1152-
"specificity."
11531262

1154-
<h3 id="s-5-12-1"><a href="selector.html#first-line-pseudo">Section
1155-
5.12.1 The :first-line pseudo-element</a></h3>
11561263

1157-
<p>Added some clarifications at the end of the section about the
1158-
fictional tag sequence in the case of nested block-level elements
1264+
<!-- Chapter 6 -->
11591265

11601266
<h3 id="r6.2"><a href="cascade.html#inheritance">Section 6.2 Inheritance</a></h3>
11611267

0 commit comments

Comments
 (0)