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
@@ -450,7 +450,8 @@ <h4 class="heading settled" data-level=2.2.2 id=first-letter-styling><span class
450
450
<p>In CSS a ::first-letter pseudo-element is similar to an inline-level element
451
451
if its <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visuren.html#propdef-floattitle=float>float</a> property is <spanclass=css>none</span>;
452
452
otherwise, it is similar to a floated element.
453
-
The following properties that apply to <spanclass=css>::first-letter</span> pseudo-elements:
453
+
The following properties that apply to <spanclass=css>::first-letter</span> pseudo-elements:</p>
454
+
454
455
<ul>
455
456
<li>all font properties (see <adata-biblio-type=informativedata-link-type=bibliohref=#biblio-css3-fontstitle=biblio-CSS3-FONTS>[CSS3-FONTS]</a>)
456
457
<li>the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-color-3/#color0title=color>color</a> and <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-color-3/#opacitytitle=opacity>opacity</a> properties (see <adata-biblio-type=informativedata-link-type=bibliohref=#biblio-css3colortitle=biblio-CSS3COLOR>[CSS3COLOR]</a>)
@@ -463,7 +464,8 @@ <h4 class="heading settled" data-level=2.2.2 id=first-letter-styling><span class
463
464
<li>any other properties defined to apply to <spanclass=css>::first-letter</span>
464
465
by their respective specifications
465
466
</ul>
466
-
User agents may apply other properties as well.<p></p>
467
+
468
+
<p>User agents may apply other properties as well.</p>
467
469
468
470
<p>To allow User-Agents to render a typographically correct drop cap or initial cap,
469
471
the User-Agent may choose a line-height, width and height
illustrates how overlapping pseudo-elements may interact.
598
-
The first letter of each P element will be green with a font size of ’24pt'.
599
-
The rest of the first formatted line will be blue
600
-
while the rest of th
E549
e paragraph will be red.
598
+
Recall that
599
+
<ul>
600
+
<li>
601
+
the contents of <aclass=cssdata-link-type=maybehref=#selectordef-beforetitle=::before>::before</a> and <aclass=cssdata-link-type=maybehref=#selectordef-aftertitle=::after>::after</a> are selected
602
+
exactly as if they were normal elements in the document source tree
603
+
<li>
604
+
the <spanclass=css>::first-letter</span> boundaries are tightly wrapped around the first letter text,
605
+
and <spanclass=css>::first-letter</span> is constrained to exist solely on the first formatted line.
606
+
<li>
607
+
the <aclass=cssdata-link-type=maybehref=#selectordef-first-linetitle=::first-line>::first-line</a> start is inserted inserted just inside the containing block’s element boundary,
608
+
and its end after the close of all content on the line
609
+
</ul>
610
+
611
+
<p>The following CSS and HTML example
612
+
illustrates how overlapping pseudo-elements interact:</p>
0 commit comments