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

You could do this with `initial-letter` to enclose the two "V" characters in a span - (or making it a "W" and just using an appropriate font...) So I'm not sure this is a case for `nth-letter`

However, here's an idea. How about we introduce control over which letters are considered part of the first-letter by using Unicode joiners? We could we specify that the `first-letter` pseudo-element must not break at a ZWJ and must break at ZWNJ.

That would allow us to support this example with `V‍VHen to the sessions...`, and also cover quite a few of the edge cases that seem to be coming up with punctuation and first-letter, without any additional CSS properties. I suspect this would be pretty easy to implement too.

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


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

Received on Sunday, 25 April 2021 09:36:59 UTC