Skip to content

Commit 54c2a06

Browse files
committed
[css-pseudo-4] Root inline fragment is inside ::first-line #1384
1 parent 03c1817 commit 54c2a06

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

css-pseudo-4/Overview.bs

+4-6
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ Finding the First Formatted Line</h4>
149149
When a [=first formatted line=] is represented
150150
by multiple ''::first-line'' pseudo-elements,
151151
they are nested in the same order as their [=originating elements=].
152+
The [=inline-level=] contents of this line--
153+
including its [=root inline box=] fragment--
154+
are nested within the innermost ''::first-line'' [=pseudo-element=].
152155

153156
<div class="example">
154157
Consider the following markup:
@@ -197,15 +200,10 @@ Styling the ''::first-line'' Pseudo-element</h4>
197200
<li>'text-orientation'
198201
</ul>
199202

200-
Setting 'line-height' on ''::first-line'' affects
203+
Note: Setting 'line-height' on ''::first-line'' inherits to
201204
the fragment of the [=root inline box=]
202205
that wraps the contents of the first line,
203206
and therefore can both increase and decrease the height of the first line box.
204-
<!-- Issue 2282 -->
205-
206-
ISSUE(2282): Is this because it wraps the root fragment,
207-
or because it <em>is</em> the root fragment?
208-
Is there any other case in which this matters?
209207

210208
<h4 id="first-line-inheritance">
211209
Inheritance and the ''::first-line'' Pseudo-element</h4>

0 commit comments

Comments
 (0)