Skip to content

Commit f385aa0

Browse files
committed
[css2] Added proposed text about nested :first-line.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402115
1 parent 188c2cd commit f385aa0

1 file changed

Lines changed: 36 additions & 4 deletions

File tree

css2/selector.src

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
987987
paragraph.&lt;/P&gt;
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">
993993
THIS IS A SOMEWHAT LONG HTML PARAGRAPH THAT
@@ -997,7 +997,7 @@ sequence. The other lines will be treated as
997997
ordinary 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
10011001
class="index-def" title="fictional tag sequence">fictional tag
10021002
sequence</span></em> for :first-line. This fictional tag sequence helps
10031003
to show how properties are inherited.
@@ -1025,7 +1025,7 @@ will be treated as ordinary lines in the
10251025
paragraph.&lt;/P&gt;
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
10291029
SPAN when inserting the fictional tag sequence for :first-line.
10301030

10311031
<pre>
@@ -1043,6 +1043,38 @@ paragraph.&lt;/P&gt;
10431043
title="pseudo-elements:::first-line">:first-line</span> pseudo-element
10441044
can 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>&lt;DIV>&lt;P>This
1052+
line...&lt;/P>&lt/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+
&lt;DIV>
1061+
&lt;P>First paragraph&lt;/P>
1062+
&lt;P>Second paragraph&lt;/P>
1063+
&lt;/DIV>
1064+
</pre>
1065+
1066+
<p>is
1067+
1068+
<pre>
1069+
&lt;DIV>
1070+
&lt;P>&lt;DIV:first-line>&lt;P:first-line>First paragraph&lt;/P:first-line>&lt;/DIV:first-line>&lt;/P>
1071+
&lt;P>&lt;P:first-line>Second paragraph&lt;/P:first-line>&lt;/P>
1072+
&lt;/DIV>
1073+
</pre>
1074+
1075+
</ins>
1076+
1077+
10461078
<p>The <a name="first-line">:first-line</a> pseudo-element is similar
10471079
to an inline-level element, but with certain restrictions. Only the
10481080
following properties apply to a :first-line pseudo-element: <a

0 commit comments

Comments
 (0)