11<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
22<html lang="en">
3- <!-- $Id: selector.src,v 2.87 2004-02-09 17:24:09 bbos Exp $ -->
3+ <!-- $Id: selector.src,v 2.88 2004-02-09 21:47:46 bbos Exp $ -->
44<head>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<title>Selectors</title>
@@ -444,7 +444,7 @@ subset" of the DTD but <em>is</em> required to look for default
444444attribute values in the document's "internal subset." (See [[XML10]]
445445for definitions of these subsets.)
446446
447- <p>A UA that recognizes an XML namespace [[-XMLNAMESPACE ]] is not
447+ <p>A UA that recognizes an XML namespace [[-XMLNAMESPACES ]] is not
448448required to use its knowledge of that namespace to treat default
449449attribute values as if they were present in the document. (E.g., an
450450XHTML UA is not required to use its built-in knowledge of the XHTML
@@ -574,7 +574,7 @@ same restriction applies.
574574identifier to one element instance in the document tree. CSS ID
575575selectors match an element instance based on its identifier. A CSS
576576ID selector contains a "#" immediately followed by the ID
577- value.</p>
577+ value, which must be an identifier .</p>
578578
579579<p class=note>Note that CSS does not specify how a UA knows the ID
580580attribute of an element. The UA may, e.g., read a document's DTD, have
@@ -868,7 +868,7 @@ elements react to user events or not, and different devices and UAs
868868may have different ways of pointing to, or activating elements.
869869
870870<p>CSS 2.1 doesn't define if the parent of an element that is
871- ':active' or ':hover is also in that state.
871+ ':active' or ':hover' is also in that state.
872872
873873<p>User agents are not required to reflow a currently displayed
874874document due to pseudo-class transitions. For instance, a style sheet
@@ -947,10 +947,10 @@ HTTP headers). XML uses an attribute called xml:lang, and there may be
947947other document language-specific methods for determining the language.
948948
949949<p>The pseudo-class ':lang(C)' matches if the element is in language
950- C. Whether there is a match is based solely on the string C
950+ C. Whether there is a match is based solely on the identifier C
951951being either equal to, or a hyphen-separated substring of, the
952952element's language value, in the same way as if performed by the <a
953- href="#attribute-selectors">'|='</a> operator. The string C doesn't
953+ href="#attribute-selectors">'|='</a> operator. The identifier C doesn't
954954have to be a valid language name.</p>
955955
956956<p>Exception: C may be empty, but it is undefined in CSS 2.1 what
@@ -960,7 +960,7 @@ it matches in that case. (This is likely to be defined in CSS level
960960<p class=note>Note: It is recommended, that documents and
961961protocols indicate language using codes from RFC 3066 [[-RFC3066]] or
962962its successor, and by means of "xml:lang" attributes in the case of
963- XML-based documents [[XML ]]. See <a
963+ XML-based documents [[XML10 ]]. See <a
964964href="http://www.w3.org/International/questions/qa-lang-2or3.html">
965965"FAQ: Two-letter or three-letter language codes."</a></p>
966966
@@ -1070,8 +1070,11 @@ paragraph.</P>
10701070
10711071<p> The <span class="index-inst"
10721072title="pseudo-elements:::first-line">:first-line</span> pseudo-element
1073- can only be attached to a block-level element or
1074- a table cell.</p>
1073+ can only be attached to a <a
1074+ href="visuren.html#block-level">block-level</a> element, <span
1075+ class="index-inst">inline-block</span>, <span
1076+ class="index-inst">table-caption</span> or a <span
1077+ class="index-inst">table-cell</span>.</p>
10751078
10761079<p><a name="first-formatted-line"></a>The "first formatted line" of an
10771080element may occur inside a
@@ -1154,6 +1157,7 @@ is similar to a floated element.</p>
11541157<a href="box.html#border-properties">border properties,</a>
11551158<a href="colors.html">color property,</a>
11561159<a href="colors.html#background-properties">background properties.</a>
1160+ UAs may apply other properties as well.
11571161To allow UAs to render a typographically correct drop cap or initial
11581162cap, the UA may choose a line-height, width and height based on the
11591163shape of the letter, unlike for normal elements. CSS3 is expected to
@@ -1235,7 +1239,8 @@ may approximate font sizes, for example to align baselines. Also, the
12351239glyph outline may be taken into account when formatting.
12361240
12371241<P>Punctuation (i.e, characters defined in Unicode [[UNICODE]] in the
1238- "open" (Ps), "close" (Pe), and "other" (Po) punctuation classes), that
1242+ "open" (Ps), "close" (Pe), "initial" (Pi). "final" (Pf) and "other"
1243+ (Po) punctuation classes), that
12391244precedes or follows the first letter should be included, as in:</p>
12401245
12411246<div class="figure">
@@ -1246,7 +1251,14 @@ first letter should be included."></p>
12461251<p>The ':first-letter' also applies if the first letter is in fact a
12471252digit, e.g., the "6" in "67 million dollars is a lot of money."
12481253
1249- <p>The :first-letter pseudo-element can be used with all elements that
1254+ <p>The :first-letter pseudo-element applies to <span
1255+ class="index-inst">block</span>, <span
1256+ class="index-inst">list-item</span>, <span
1257+ class="index-inst">table-cell</span>, <span
1258+ class="index-inst">table-caption</span> and <span
1259+ class="index-inst">inline-block</span> elements.
1260+
1261+ <p>The :first-letter pseudo-element can be used with all such elements that
12501262contain text, or that have a descendant in the same flow that contains
12511263text. A UA should act as if the fictional start tag of the
12521264first-letter pseudo-element is just before the first text of the
0 commit comments