- From: Ilya Streltsyn via GitHub <sysbot+gh@w3.org>
- Date: Thu, 05 Dec 2019 15:37:23 +0000
- To: public-css-archive@w3.org
@shshaw well, `::first-letter` also has its problems with emojis (at least in Gecko), hope it's just a bug... And according to the [StackOverflow answer](https://stackoverflow.com/a/38901550/2533215) mentioned in the discussion you referenced, accessing the (unicode) character in position `n` in the string `string` appears to be possible with not too complicated functions like `(string, n) => string.match(new RegExp('(?<=.{' + n + '})', 'u'))[0]` or just `(string, n) => [...string][n]`. -- GitHub Notification of comment by SelenIT Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3208#issuecomment-562183070 using your GitHub account
Received on Thursday, 5 December 2019 15:37:24 UTC