Re: [csswg-drafts] [css-pseudo-4] `::nth-letter` pseudo-element (#3208)

Here's a use case for `::nth-letter() `(or at least second letter). When trying to reproduce historical texts like Shakespeare, initial letter doesn't work for several reasons:

1. There are hard line breaks in poetry and the dropcap should span two lines (or more in many cases) and it's not recognized (`<br />` doesn't work for semantic reasons)
2. Sometimes the dropcap is two letters (see below).
3. The next letter after the dropcap is often capitalized, but not always.

![css](https://user-images.githubusercontent.com/355924/115968923-000e2c80-a4ef-11eb-9958-d87c96ba219b.jpg)

If there's reason enough to support dropcaps, there should be reason enough to support them correctly, not superficially.


-- 
GitHub Notification of comment by severdia
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3208#issuecomment-826133888 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 24 April 2021 18:23:14 UTC