You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In particular, it does not match the “F” of “First”,
@@ -359,7 +358,7 @@ Finding the First Letter Text</h4>
359
358
the [=first-letter text=] of a [=block container=]
360
359
that does not participate in a [=block formatting context=]
361
360
cannot be the [=first-letter text=] of an ancestor element.
362
-
Thus, in <code><DIV><P STYLE="display: inline-block">Hello<BR>Goodbye</P> etcetera</DIV></code>
361
+
Thus, in <code class="lang-markup"><DIV><P STYLE="display: inline-block">Hello<BR>Goodbye</P> etcetera</DIV></code>
363
362
the first letter of the <code>DIV</code> is not the letter “H”.
364
363
In fact, the <code>DIV</code> doesn't have a first letter,
365
364
as its [=first formatted line=] contains no content besides the inline block.
@@ -370,14 +369,14 @@ Inheritance and Box Tree Structure of the ''::first-letter'' Pseudo-element</h4>
370
369
The ''::first-letter'' pseudo-element is wrapped
371
370
immediately around the [=first-letter text=] it represents,
372
371
even if that text is in a descendant.
373
-
When a [=first-letter text=] is represented by multiple ''::first-letter" pseudo-elements,
372
+
When a [=first-letter text=] is represented by multiple ''::first-letter'' pseudo-elements,
374
373
they are nested in the same order as their [=originating elements=].
375
374
[=Inheritance=] behaves accordingly.
376
375
377
376
<div class="example">
378
377
Consider the following markup:
379
378
380
-
<pre>
379
+
<pre class="lang-markup">
381
380
<div>
382
381
<p><span>The first few words</span>
383
382
and the rest of the paragraph.
@@ -388,7 +387,7 @@ Inheritance and Box Tree Structure of the ''::first-letter'' Pseudo-element</h4>
388
387
to represent the elements’ ''::first-letter'' pseudo-elements,
389
388
it would be something like:
390
389
391
-
<pre>
390
+
<pre class="lang-markup">
392
391
<div>
393
392
<p><span><strong><div::first-letter><p::first-letter></strong>T<strong></…></…></strong>he first few words</span>
394
393
and the rest of the paragraph.
@@ -398,7 +397,7 @@ Inheritance and Box Tree Structure of the ''::first-letter'' Pseudo-element</h4>
398
397
399
398
If the characters that would form the [=first-letter text=]
400
399
are not all in the same element
401
-
(as the <code>‘T</code> in <code><p>‘<em>T...</code>),
400
+
(as the <code>‘T</code> in <code class="lang-css"><p>‘<em>T...</code>),
402
401
the user agent may create a ''::first-letter'' pseudo-element
403
402
from one of the elements, or all elements,
404
403
or simply not create a pseudo-element.
@@ -646,13 +645,13 @@ Cascading and Per-Element Highlight Styles</h3>
0 commit comments