Re: [csswg-drafts] [css-pseudo-4] `::nth-letter` pseudo-element

@upsuper `initial-letters` is a layout property that happens to apply to `:first-letter`, it doesn't magically select the first letter the way `text-combine-upright: digits` magically selects numbers ...

@tabatkins I don't think any reasonably marked up document would put an element boundary there, so it's OK for that to be handled as a simplified error of some kind. I think the basic point is that pseudo-elements of this type make implementers very unhappy* so a moderately convincing use case with an easy workaround is likely not enough motivation.

* A fun example is even-odd styling of :nth-letter() over a paragraph. Now insert a caret at character 5 and start typing. Somehow that has to work as expected, and reasonably preformantly as well because that's what the user expects. Other fun questions include “exactly how do Indic scripts work here?”, “what about Dutch ij?” (answer: probably not the same way as `:first-letter`), and other i18n inquiries.

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

Received on Saturday, 13 October 2018 08:43:51 UTC