11<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
22<html lang="en">
3- <!-- $Id: selector.src,v 2.69 2003-07-01 15:42:14 bbos Exp $ -->
3+ <!-- $Id: selector.src,v 2.70 2003-07-21 14:44:49 bbos Exp $ -->
44<head>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<title>Selectors</title>
@@ -987,7 +987,7 @@ will be treated as ordinary lines in the
987987paragraph.</P>
988988</pre>
989989
990- the lines of which happen to be broken as follows:
990+ <p> the lines of which happen to be broken as follows:
991991
992992<pre class="html-example">
993993THIS IS A SOMEWHAT LONG HTML PARAGRAPH THAT
@@ -997,7 +997,7 @@ sequence. The other lines will be treated as
997997ordinary lines in the paragraph.
998998</pre>
999999
1000- might be "rewritten" by user agents to include the <em><span
1000+ <p> might be "rewritten" by user agents to include the <em><span
10011001class="index-def" title="fictional tag sequence">fictional tag
10021002sequence</span></em> for :first-line. This fictional tag sequence helps
10031003to show how properties are inherited.
@@ -1025,7 +1025,7 @@ will be treated as ordinary lines in the
10251025paragraph.</P>
10261026</pre>
10271027
1028- the user agent could generate the appropriate start and end tags for
1028+ <p> the user agent could generate the appropriate start and end tags for
10291029SPAN when inserting the fictional tag sequence for :first-line.
10301030
10311031<pre>
@@ -1043,6 +1043,38 @@ paragraph.</P>
10431043title="pseudo-elements:::first-line">:first-line</span> pseudo-element
10441044can only be attached to a block-level element.</p>
10451045
1046+ <ins
1047+ cite="http://lists.w3.org/Archives/Public/www-style/2003Jul/0076.html"><p>
1048+ The "first formatted line" of an element may occur inside a
1049+ block-level descendant in the same flow (i.e., a block-level
1050+ descendant that is not positioned and not a float). E.g., the first
1051+ line of the DIV in <code><DIV><P>This
1052+ line...</P></DIV></code> is the first line of the P (assuming
1053+ that both P and DIV are block-level).
1054+
1055+ <p>The fictional start tag of the first-line pseudo-element is
1056+ considered to be just inside the smallest enclosing block-level
1057+ element. Here is a (complex) example. The fictional tag sequence for
1058+
1059+ <pre>
1060+ <DIV>
1061+ <P>First paragraph</P>
1062+ <P>Second paragraph</P>
1063+ </DIV>
1064+ </pre>
1065+
1066+ <p>is
1067+
1068+ <pre>
1069+ <DIV>
1070+ <P><DIV:first-line><P:first-line>First paragraph</P:first-line></DIV:first-line></P>
1071+ <P><P:first-line>Second paragraph</P:first-line></P>
1072+ </DIV>
1073+ </pre>
1074+
1075+ </ins>
1076+
1077+
10461078<p>The <a name="first-line">:first-line</a> pseudo-element is similar
10471079to an inline-level element, but with certain restrictions. Only the
10481080following properties apply to a :first-line pseudo-element: <a
0 commit comments