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
Applies to: <code>::first-letter</code> pseudo-elements and inline-level first child of a block container
595
595
Inherited: yes
@@ -607,12 +607,13 @@ or follow the contour of its end-edge glyph outline.
607
607
<dd>No contour-fitting is performed:
608
608
each impacted line is aligned flush to the end margin edge of the <a>initial letter</a>.</dd>
609
609
610
+
<dt><dfn>first</dfn>
611
+
<dd>Behaves as for ''all'' on the first line of the block containing the initial letter and as ''none'' on the rest.</dd>
612
+
610
613
<dt><dfn>all</dfn></dt>
611
614
<dd>For each line of text impacted by the initial letter, the line box adjacent to the intial letter starts at the start-most point that touches the ink of the initial letter, plus the amount of the <a>initial letter</a>’s end-side border+padding+margin.</dd>
612
615
613
-
614
-
<dt><dfn>first</dfn>
615
-
<dd>Behaves as for ''all'' on the first line of the block containing the initial letter and as ''none'' on the rest.</dd>
616
+
This value is at-risk.
616
617
617
618
<dt><dfn>auto</dfn>
618
619
<dd>Behaves as ''none'' if
@@ -621,7 +622,7 @@ the first <a>typographic character unit</a> after the <a>initial letter</a> belo
621
622
the last <a>typographic character unit</a> of the <a>initial letter</a>
622
623
<ul>
623
624
<li>belongs to the Symbols <a>Unicode General Category</a> (<code>S</code>)
624
-
<li>has an <a>East Asian Width</a> property of <code>Wide</code> or <code>Fullwidth</code>
625
+
<li>has an East Asian Width property of <code>Wide</code> or <code>Fullwidth</code>
625
626
<li>belongs to a script that is commonly used without spaces between words.
626
627
(Such scripts include:
627
628
Cham,
@@ -634,8 +635,23 @@ the last <a>typographic character unit</a> of the <a>initial letter</a>
634
635
</ul>
635
636
Behaves as ''first'' otherwise.
636
637
637
-
Issue: Do we want to make this script-dependent?
638
+
Issue: Do we want to make this script-dependent?
639
+
640
+
<dt><dfn>grid</dfn>
641
+
<dd>This value is the same as ''none'',
642
+
except that the exclusion area of the impacted lines
643
+
is increased as necessary for its end-edge to land on the character grid.
644
+
The 'justify-self' property can then be used to align the initial letter box
<dd>Raise (positive value) or lower (negative value) by the specified percentage of the <aclass="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height">line-height</a>.
<p>The alignment constraints for drop initials depend on the writing system. In ideographic scripts, the initial letter extends from the <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#block-start">block-start</a> edge of the first line to the <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#block-end">block-end</a> edge of the Nth line.</p>
681
+
<p>The alignment constraints for drop initials depend on the writing system. In ideographic scripts, the initial letter extends from the <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#block_start">block-start</a> edge of the first line to the <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#block_end">block-end</a> edge of the Nth line.</p>
<dd>This optional second argument argument defines the number of lines the initial letter should sink. Values must be greater than zero. If omitted, it duplicates the first argument, floored to the nearest positive whole number.
<dd>Uses the <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#line-over">line-over</a> and <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#line-under">line-under</a> margin edges
949
+
<dd>Uses the <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#line_over">line-over</a> and <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#line_under">line-under</a> margin edges
950
950
as the <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#over">over</a> and <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#under">under</a> alignment points, respectively.
951
951
952
952
953
953
<dt>content-box
954
954
955
-
<dd>Uses the <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#line-over">line-over</a> and <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#line-under">line-under</a> content edges
955
+
<dd>Uses the <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#line_over">line-over</a> and <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#line_under">line-under</a> content edges
956
956
as the <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#over">over</a> and <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#under">under</a> alignment points, respectively.
957
957
(In most cases, these will correspond to
958
958
the <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#over">over</a> and <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#under">under</a> edges of the glyph bounding box.)
<dd>For each line of text impacted by the initialletter, the line box adjacent to the intial letter starts at the start-most point that touches the ink of the initial letter, plus the amount of the <adata-link-type="dfn" href="#initial-letter">initial letter</a>’s end-side border+padding+margin.
1172
+
<dd>Behaves as for <aclass="css" data-link-type="maybe" href="#valdef-initial-letter-wrap-all">all</a> on the first line of the block containing the initial letter and as <aclass="css" data-link-type="maybe" href="#valdef-initial-letter-wrap-none">none</a> on the rest.
<dd>For each line of text impacted by the initialletter, the line box adjacent to the intial letter starts at the start-most point that touches the ink of the initialletter, plus the amount of the <adata-link-type="dfn"href="#initial-letter">initial letter</a>’s end-side border+padding+margin.
1177
1178
1178
-
<dd>Behaves as for <aclass="css" data-link-type="maybe" href="#valdef-initial-letter-wrap-all">all</a> on the first line of the block containing the initial letter and as <aclass="css" data-link-type="maybe" href="#valdef-initial-letter-wrap-none">none</a> on the rest.
<li>belongs to the Symbols <adata-link-type="dfn" href="https://drafts.csswg.org/css-text-3/#unicode-general-category">Unicode General Category</a> (<code>S</code>)
1191
1193
1192
-
<li>has an <adata-link-type="dfn">East Asian Width</a> property of <code>Wide</code> or <code>Fullwidth</code>
1194
+
<li>has an East Asian Width property of <code>Wide</code> or <code>Fullwidth</code>
1193
1195
1194
1196
<li>belongs to a script that is commonly used without spaces between words.
<dd>This value is the same as <aclass="css" data-link-type="maybe" href="#valdef-initial-letter-wrap-none">none</a>,
1215
+
except that the exclusion area of the impacted lines
1216
+
is increased as necessary for its end-edge to land on the character grid.
1217
+
The <aclass="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-align-3/#propdef-justify-self">justify-self</a> property can then be used to align the initial letter box
1218
+
within the exclusion area.
1219
+
1220
+
1221
+
<p>The heuristic for matching the character grid is
<h3class="no-num heading settled" id="index-defined-elsewhere"><spanclass="content">Terms defined by reference</span><aclass="self-link" href="#index-defined-elsewhere"></a></h3>
1624
1646
<ulclass="indexlist">
1647
+
<li><adata-link-type="biblio" href="#biblio-css-align-3">[css-align-3]</a> defines the following terms:
<dd>Elika Etemad; Koji Ishii. <ahref="http://www.w3.org/TR/css-text-3/">CSS Text Module Level 3</a>. 10 October 2013. LCWD. URL: <ahref="http://www.w3.org/TR/css-text-3/">http://www.w3.org/TR/css-text-3/</a>
0 commit comments