You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:root {
--💅: hotpink;
}
body {
background-color:var(--💅);
}
I don't think writing CSS like 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.
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.
The text was updated successfully, but these errors were encountered:
The Syntax spec runs on a stream of code points, but JS naively returns code units, which are limited to the range 0-ffff. To encode any higher code points JS splits them into two code units using the reserved surrogate range, from d800-dfff. You have to account for this when parsing strings from JS. (My parser just eagerly converts the whole string into an array of codepoints, but these days you can do that more easily with an Array.from(str, cp=>cp.codePointAt(0)) call, since the iterator protocol on strings advances by codepoint.)
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 :
I don't think writing CSS like 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.
postcss/postcss-custom-properties#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.
The text was updated successfully, but these errors were encountered: