[csswg-drafts] [css-syntax-3] `non-ASCII ident code point` might be breaking because it excludes the use of emojis in idents (#8862)

romainmenke has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-syntax-3] `non-ASCII ident code point` might be breaking because it excludes the use of emojis in idents ==
_As always, I might just have a bug :)_

After implementing https://drafts.csswg.org/css-syntax/#non-ascii-ident-code-point I had a bunch of test failures because emojis are no longer valid in idents.

This works today in all browsers :

```css
:root {
 --💅: hotpink;
}

body {
 background-color: var(--💅);
}
```

I don't think this is a good idea, but I know that we have had reports about it not working for people, so that is at least an indicator that someone did something like this.

https://github.com/postcss/postcss-custom-properties/issues/237

------------

If it is correct that these codepoints are no longer valid in idents it might be needed to check if this will break more than just a few experiments by people.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8862 using your GitHub account


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

Received on Saturday, 20 May 2023 16:23:09 UTC