11<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
22<html lang="en">
3- <!-- $Id: selector.src,v 2.23 1998-03-14 00:43:19 ijacobs Exp $ -->
3+ <!-- $Id: selector.src,v 2.24 1998-03-14 23:45:44 ijacobs Exp $ -->
44<head>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<title>Selectors</title>
@@ -91,23 +91,22 @@ href="#pseudo-classes">pseudo-class</a>. Each component specifies a
9191requirement of an element, and the simple selector requires the
9292logical AND of those requirements.
9393
94+
9495<P>A <span class="index-def"
9596title="selector"><dfn>selector</dfn></span> is a chain of one or more
9697simple selectors separated by combinators (plus optional whitespace).
98+ The elements of the document tree that match a selector are called
99+ <span class="index-def" title="subject (of selector)|selector::subject
100+ of"><a name="subject"><dfn>subjects</dfn></a></span> of the selector.
97101A selector consisting of a single simple selector matches any element
98- satisfying its requirements. Additional components (always preprended)
99- impose additional constraints that must be met for the selector to
100- match.
101-
102- <P>The <span class="index-def" title="subject (of
103- selector)|selector::subject of"><a
104- name="subject"><dfn>subject</dfn></a></span> of a selector is the
105- rightmost simple selector of a chain. When a selector matches, the subject
106- designates the element in the document tree to which the rest
107- of the rule applies.
102+ satisfying its requirements. Prepending a simple selector and
103+ combinator to a chain imposes additional matching constraints, so the
104+ subjects of a selector are always a subset of the elements matching
105+ the rightmost simple selector.
108106
109107<P>One <a href="#pseudo-elements">pseudo-element</a> may be appended
110- to the subject of a selector; it refers to a subpart of the subject.
108+ to the last simple selector in a chain, in which case the style
109+ information applies to a subpart of the subjects.
111110
112111<h3><a name="grouping">Grouping</a></h3>
113112
@@ -335,7 +334,8 @@ spaces (since they are separated by spaces).
335334<dt><span class="index-def" title="hyphen-separated
336335matching||="><code>[att|=val]</code></span>
337336<dd>Match when the element's "att" attribute value is a
338- hyphen-separated list of "words", beginning with "val".
337+ hyphen-separated list of "words", beginning with "val". The match
338+ always starts at the beginning of the attribute value.
339339<!--If this selector is used, the words in the value must not contain
340340hyphens (since they are separated by hyphens).--> This is primarily
341341intended to allow <span class="index-inst" title="language
@@ -608,7 +608,7 @@ line of an element's content. CSS pseudo-elements allow style sheet
608608designers to refer to this otherwise inaccessible
609609information. Pseudo-elements may also provide style sheet designers a
610610way to assign style to otherwise <a
611- href="conform .html#anonymous">anonymous</a> content (e.g., the <a
611+ href="visuren .html#anonymous">anonymous</a> content (e.g., the <a
612612href="generate.html#before-after-content">:before and :after</a>
613613pseudo-elements give access to generated content).
614614
@@ -653,8 +653,8 @@ element, and the first letter.
653653-->
654654
655655<p><a href="conform.html#conformance">Conforming HTML user agents</a>
656- may <span class="index-inst" title="skip "><a
657- href="syndata.html#skip">skip </a></span> all rules with :first-line or
656+ may <span class="index-inst" title="ignore "><a
657+ href="syndata.html#ignore">ignore </a></span> all rules with :first-line or
658658:first-letter in the selector, or, alternatively, may only support a
659659subset of the properties on these pseudo-elements.</P>
660660
@@ -708,7 +708,7 @@ child:</p>
708708</pre>
709709</div>
710710
711- <P>Note that since <a href="conform .html#anonymous">anonymous</a>
711+ <P>Note that since <a href="visuren .html#anonymous">anonymous</a>
712712boxes are not part of the document tree, they are not counted when
713713calculating the first child.</p>
714714
@@ -988,7 +988,7 @@ SPAN when inserting the fictional tag sequence for :first-line.</p>
988988a block-level element.</p>
989989
990990<p>The <a name="first-line">:first-line</a> pseudo-element is similar
991- to an inline element, but with certain restrictions. Only the
991+ to an inline-level element, but with certain restrictions. Only the
992992following properties apply to a :first-line element: <a
993993href="fonts.html#font-properties">font properties,</a> <a
994994href="colors.html">color properties,</a> <a
@@ -1009,7 +1009,7 @@ class="propinst-clear">'clear'.</span></p>
10091009class="index-inst" title="initial caps">"initial caps"</span> and
10101010<span class="index-inst" title="drop caps">"drop caps"</span>, which
10111011are common typographical effects. This type of initial letter is
1012- similar to an inline element if its <span
1012+ similar to an inline-level element if its <span
10131013class="propinst-float">'float'</span> property is 'none', otherwise it
10141014is similar to a floating element.</p>
10151015
@@ -1089,7 +1089,7 @@ first letter should be included."></p>
10891089parenthesis and ellipsis points) or other characters that are normally
10901090not considered letters (e.g., digits and mathematical symbols),
10911091:first-letter pseudo-elements are generally <span class="index-inst"
1092- title="skip "><a href="syndata.html#skip">skipped </a></span></p>
1092+ title="ignore "><a href="syndata.html#ignore">ignored </a></span></p>
10931093Removed 27/2/98 -->
10941094
10951095<p>The :first-letter pseudo-element matches parts of <a
0 commit comments