Re: [csswg-drafts] [css-fonts] Clarification font-variant-emoji should not affect characters `0-9#*` (#11014)

I'm staying up late waiting for the results of this meeting, and I'm glad some progress has been made.

Thank you all for taking the time to discuss this! 🤝🤝

I'll give a summary of some of the possible doubts:

### Why not use the `unicode` keyword?

Because it doesn't allow common emoji like `⬆︎`, `❤︎` to be in color style.

### Why not nest `<span>` in emoji characters?

Again, I want to emphasize that there is a lot of content on the web that is not under the control of CSS authors, and that is completely triangulated by user input (e.g., text typed into a comment box). The cost of nesting `span`s with numbers in this content is very high.

In the meeting above, @fantasai also expressed the same idea as mine.

> moonira: dominik mentioned in his last comment we can also use span elements on those digits to achieve the desired outcome

> fantasai: yes, but the commenter is saying that digits are commonly used and rarely do they want emoji styling. Forcing the author to put spans around every digits is a lot of extra work.
 (and might not even be possible in their system)


### Looking for a Unicode solution?

> From the Chrome side, we have strict implementation constraints to not deviate from Unicode for character properties.

@drott So, am I to understand that as long as there is a relevant property in Unicode to exclude digits, Chrome is happy to implement it?

If I understand correctly, `RGI_Emoji_Qualification` in UTS 51 seems to be a solid solution, where `0-9*#` is not included.

See: 
- https://github.com/mathiasbynens/emoji-test-regex-pattern/issues/7#issuecomment-2379868224
- https://www.unicode.org/Public/emoji/16.0/emoji-test.txt

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


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

Received on Wednesday, 27 November 2024 18:58:10 UTC