Skip to content

Commit 7138498

Browse files
committed
[css-pseudo-4] ::first-line cannot cross non-block element formatting context boundary. Also except table captions. w3c#1174 fixes w3c#1174
1 parent 976742e commit 7138498

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

css-pseudo-4/Overview.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ Finding the First Formatted Line</h4>
155155
(assuming that both <code>P</code> and <code>DIV</code> are blocks).
156156
</div>
157157

158-
The first line of a table-cell or inline-block
158+
The first line of a [=block container=] which does not participate in a [=block formatting context=]
159+
(and likewise the first line of a [=table caption=])
159160
cannot be the first formatted line of an ancestor element.
160161
Thus, in <code>&lt;DIV&gt;&lt;P STYLE="display: inline-block"&gt;Hello&lt;BR&gt;Goodbye&lt;/P&gt; etcetera&lt;/DIV&gt;</code>
161162
the first formatted line of the <code>DIV</code> is not the line "Hello".

0 commit comments

Comments
 (0)