Skip to content

Commit f3fb461

Browse files
committed
[css-inline] add section on initial letter punctuation
1 parent 0d72750 commit f3fb461

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

css-inline/Overview.bs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,18 @@ Raised Initial Letters</h4>
402402
</pre>
403403
</div>
404404

405+
<h4 id="initial-letter-punctuation">Initial Letter Punctuation</h4>
406+
407+
Since <code>::first-letter</code> selects punctuation before or after the first letter, these characters are included in the initial-letter.
408+
409+
<figure>
410+
<img src="images/initial-letter-punctuation-quote.png" width="604"
411+
alt="Paragraph showing both opening quote and first letter set as three-line drop cap">
412+
<figcaption>The <code>::first-letter</code> pseudo-element selects the quotation mark as well as the “M.”</figcaption>
413+
</figure>
414+
415+
Issue: Should there be a way to opt out of this behavior? See <a href="https://github.com/w3c/csswg-drafts/issues/310">Github Issue 310</a>.
416+
405417
<h3 id="sizing-drop-initials">
406418
Creating Initial Letters: the 'initial-letter' property</h3>
407419

0 commit comments

Comments
 (0)