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
<tdclass="prod">none <adata-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> first <adata-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> all <adata-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> grid
710
+
<tdclass="prod">none <adata-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> first <adata-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> all <adata-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> grid<adata-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a><aclass="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#length-value"><length></a><adata-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a><aclass="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#percentage-value"><percentage></a>
<td>relative to <adata-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#logical-width">logical width</a> of (last fragment of) initial letter
This value behaves the same as <aclass="css" data-link-type="maybe" href="#valdef-initial-letter-wrap-first">first</a> except that the adjustment to the first line is given explicitly
786
+
instead of being inferred from the glyph shape.
787
+
<pclass="issue" id="issue-645378a9"><aclass="self-link" href="#issue-645378a9"></a> This really needs font-relative lengths to be relative to the used size.</p>
788
+
<pclass="note" role="note">Note: This value exists because it is easier to implement.
789
+
Authors are encouraged to use the <aclass="css" data-link-type="maybe" href="#valdef-initial-letter-wrap-first">first</a> value
790
+
and to set margins to control spacing,
791
+
and to use this as a fallback for glyph detection if necessary.</p>
792
+
<divclass="example" id="example-e11c0dc6">
793
+
<aclass="self-link" href="#example-e11c0dc6"></a> In the following example, UAs that support <aclass="css" data-link-type="maybe" href="#valdef-initial-letter-wrap-first">first</a> will use the glyph outline
794
+
plus the specified margin in order to place the first line,
795
+
whereas UAs that only support <aclass="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#length-value"><length></a> or <aclass="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#percentage-value"><percentage></a> values
796
+
will pull in the first line by 40% of the initial letter’s width
797
+
(and then add the margin to that point).
798
+
<pre>h1 + p:first-letter {
799
+
initial-letter: 3; /* 3-line drop-cap */
800
+
initial-letter-wrap: first;
801
+
margin-right: 0.1em;
802
+
}
803
+
@supports (not (initial-letter-wrap: first)) {
804
+
/* Classes auto-generated on paragraphs to match first letter. */
<divclass="issue"> Are there other things we need to consider here?<ahref="#issue-bef56215"> ↵ </a></div>
1275
1315
<divclass="issue"> Do we need an unconditional <aclass="css" data-link-type="maybe" href="#valdef-initial-letter-wrap-first">first</a>?
1276
1316
(I.e. Should we rename this value to <aclass="css" data-link-type="maybe" href="#valdef-dominant-baseline-auto">auto</a> and add a <aclass="css" data-link-type="maybe" href="#valdef-initial-letter-wrap-first">first</a> value that does not check for spaces?)<ahref="#issue-a826765c"> ↵ </a></div>
1317
+
<divclass="issue"> This really needs font-relative lengths to be relative to the used size.<ahref="#issue-645378a9"> ↵ </a></div>
1277
1318
<divclass="issue"> Edit figure to show how auto behaves in varying contexts<ahref="#issue-c4ff3304"> ↵ </a></div>
1278
1319
<divclass="issue"> Handle glyph ink above cap height of font.<ahref="#issue-f77cbeb9"> ↵ </a></div>
1279
1320
<divclass="issue"> Is this the behavior we want? What if the float is on the same line as the initial letter?<ahref="#issue-2ad0a0cb"> ↵ </a></div>
0 commit comments