Re: [csswg-drafts] [css‑fonts‑4] Create keywords for `unicode‑range` (#4573)

> ```js
> /^\p{Emoji}$/v.test('👨‍❤️‍👨')
> // → false ❌
> ```

The Emoji property is a property of characters.
- https://www.unicode.org/reports/tr44/#Emoji
- https://unicode.org/reports/tr51/#Emoji_Properties_and_Data_Files
- https://unicode.org/reports/tr51/#Emoji_Sets

You are testing whether a five-character sequence matches a single-character property.
That's like testing whether a+umlaut matches Alphabetic as a single character.

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


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

Received on Tuesday, 24 September 2024 18:15:08 UTC