11<!DOCTYPE HTML SYSTEM "http://www.w3.org/TR/WD-html40/sgml/HTML4.dtd">
22<html lang="en">
3- <!-- $Id: selector.src,v 1.4 1997-07-31 15:38:06 ijacobs Exp $ -->
3+ <!-- $Id: selector.src,v 1.5 1997-08-01 13:28:42 ijacobs Exp $ -->
44<HEAD>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<TITLE>Selectors</TITLE>
@@ -73,7 +73,7 @@ element types.
7373
7474<P> In a contextual selector, pseudo-elements are only allowed at the
7575end of the selector. The following example illustrates this with the
76- <span class="index-inst" title="first-letter">first-letter</span>
76+ <span class="index-inst" title=": first-letter">: first-letter</span>
7777pseudo element (defined below).
7878
7979<PRE>
@@ -99,8 +99,8 @@ pseudo-elements must be specified at the end of the selector.
9999
100100<P> Several pseudo elements can be combined. The following examples
101101use the <span class="index-inst"
102- title="first-letter">first-letter</span> and <span class="index-inst"
103- title="first-line">first-line</span> pseudo elements defined below.
102+ title=": first-letter">: first-letter</span> and <span class="index-inst"
103+ title=": first-line">: first-line</span> pseudo elements defined below.
104104
105105<PRE>
106106 P { color: red; font-size: 12pt }
@@ -127,10 +127,10 @@ would be red. Assuming that a line break will occur before the word
127127 </P>
128128</PRE>
129129
130- <P> Note that the first-letter element is inside the first-line
131- element. Properties set on first-line will be inherited by
132- first-letter, but are overridden if the same property is set on
133- first-letter.
130+ <P> Note that the : first-letter element is inside the : first-line
131+ element. Properties set on : first-line will be inherited by
132+ : first-letter, but are overridden if the same property is set on
133+ : first-letter.
134134
135135<P> If a pseudo-element breaks up a real element the necessary extra
136136tags must be regenerated in the fictional tag sequence. For example,
@@ -151,10 +151,10 @@ tag sequence becomes:
151151</PRE>
152152
153153<H3>Typographical pseudo-elements:
154- <span class="index-inst" title="pseudo-elements,
155- first-line">first-line</span> and
154+ <span class="index-inst" title="pseudo-elements,
155+ : first-line">: first-line</span> and
156156<span class="index-inst"
157- title="pseudo-elements,first-letter">first-letter</span>
157+ title="pseudo-elements,: first-letter">: first-letter</span>
158158</H3>
159159
160160<P> Some common typographical effects are associated not with
@@ -166,18 +166,18 @@ element, and the first letter.
166166
167167<div class="note"><P>
168168<em><strong>Note.</strong>
169- Conforming UAs MAY ignore all rules with ' :first-line' or
170- ' :first-letter' in the selector, or, alternatively, MAY only support a
169+ Conforming UAs MAY ignore all rules with :first-line or
170+ :first-letter in the selector, or, alternatively, MAY only support a
171171subset of the properties on these pseudo-elements. See the section on
172172<a href="conformance.html">conformance</a> for further information.
173173</em>
174174</div>
175175
176176<H4><span class="index-def" title="pseudo-elements,
177- first-line">first-line</span></H4>
178- <span class="index-def" title="first-line"> </span>
177+ : first-line">: first-line</span></H4>
178+ <span class="index-def" title=": first-line"> </span>
179179
180- <P> The first-line pseudo-element is used to apply special styles to
180+ <P> The : first-line pseudo-element is used to apply special styles to
181181the first line as formatted on the canvas:
182182
183183<PRE>
@@ -206,16 +206,16 @@ the first line as formatted on the canvas:
206206 </P>
207207</PRE>
208208
209- <P> The first-line end tag is inserted at the end of the first line
209+ <P> The : first-line end tag is inserted at the end of the first line
210210as formatted on the canvas.
211211
212212<P> The <span class="index-inst" title="pseudo-elements,
213- first-line">first-line</span> pseudo-element can only be attached to a
213+ : first-line">: first-line</span> pseudo-element can only be attached to a
214214block-level element.
215215
216- <P> The first-line pseudo-element is similar to an inline element,
216+ <P> The : first-line pseudo-element is similar to an inline element,
217217but with certain restrictions. Only the following properties apply to
218- a first-line element:
218+ a : first-line element:
219219<a href="fonts.html#font-properties">font properties</a>,
220220<a href="colors.html#color-properties">color properties</a>,
221221<a href="colors.html#background-properties">background properties</a>,
@@ -228,17 +228,17 @@ class="propinst">'line-height'</span>, and <span
228228class="propinst">'clear'</span>,
229229
230230<H4><span class="index-def" title="pseudo-elements,
231- first-letter">first-letter</span></H4>
232- <span class="index-def" title="first-letter"> </span>
231+ : first-letter">: first-letter</span></H4>
232+ <span class="index-def" title=": first-letter"> </span>
233233
234- <P> The first-letter pseudo-element is used for <span
234+ <P> The : first-letter pseudo-element is used for <span
235235class="index-inst" title="initial caps">"initial caps"</span> and
236236<span class="index-inst" title="drop caps">"drop caps"</span>, which
237237are common typographical effects. It is similar to an inline element
238238if its <span class="propinst">'float'</span> property is 'none',
239239otherwise it is similar to a floating element.
240240
241- <P>These are the properties that apply to first-letter pseudo-elements:
241+ <P>These are the properties that apply to : first-letter pseudo-elements:
242242<a href="fonts.html#font-properties">font properties</a>,
243243<a href="colors.html#color-properties">color properties</a>,
244244<a href="colors.html#background-properties">background properties</a>,
@@ -272,7 +272,7 @@ class="propinst">'clear'</span>.
272272</HTML>
273273</PRE>
274274
275- <P> If a text-based UA supports the first-letter pseudo-element
275+ <P> If a text-based UA supports the : first-letter pseudo-element
276276the above could be formatted as:
277277
278278<PRE>
@@ -297,12 +297,12 @@ the above could be formatted as:
297297 </P>
298298</PRE>
299299
300- <P> Note that the first-letter pseudo-element tags abut the content
301- (i.e., the initial character), while the first-line pseudo-element
300+ <P> Note that the : first-letter pseudo-element tags abut the content
301+ (i.e., the initial character), while the : first-line pseudo-element
302302start tag is inserted right after the start tag of the element to
303303which it is attached.
304304
305- <P> The UA defines what characters are inside the first-letter
305+ <P> The UA defines what characters are inside the : first-letter
306306element. Quotes that precede the first letter SHOULD be
307307included:
308308
@@ -318,17 +318,17 @@ included:
318318<P> When the paragraph starts with other punctuation (e.g., parenthesis
319319and ellipsis points) or other characters that are normally not
320320considered letters (e.g., digits and mathematical symbols),
321- first-letter pseudo-elements are usually ignored.
321+ : first-letter pseudo-elements are usually ignored.
322322
323- <P> The first-letter pseudo-element can only be attached to a
323+ <P> The : first-letter pseudo-element can only be attached to a
324324block-level element.
325325
326326<div class="note"><P>
327327<em><strong>Note.</strong>
328328Some languages may have specific rules about how to treat certain
329329letter combinations. In Dutch, for example, if the letter combination
330330"ij" appears at the beginning of a word, they should both be
331- considered within the first-letter pseudo-element.
331+ considered within the : first-letter pseudo-element.
332332</em>
333333</div>
334334
@@ -418,10 +418,10 @@ elements of HTML. This use of style sheets is discouraged.
418418</div>
419419
420420<H3>Anchor pseudo-classes:
421- <span class="index-def" title="pseudo-classes, link">link</span>,
422- <span class="index-def" title="pseudo-classes, visited">visited</span>,
421+ <span class="index-def" title="pseudo-classes, : link">: link</span>,
422+ <span class="index-def" title="pseudo-classes, : visited">: visited</span>,
423423and
424- <span class="index-def" title="pseudo-classes, active">active</span>
424+ <span class="index-def" title="pseudo-classes, : active">: active</span>
425425</H3>
426426
427427<P> User agents commonly display newly visited HTML anchors
0 commit comments