Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-variables] [css-syntax] Define how Unicode name comparisons work #2693

Closed
litherum opened this issue May 22, 2018 · 1 comment
Closed
Labels
Closed Rejected as Invalid css-variables-1 Current Work i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. Testing Unnecessary Memory aid - issue doesn't require tests

Comments

@litherum
Copy link
Contributor

litherum commented May 22, 2018

Because names support all of Unicode, and various places need to compare these for equality (e.g. comparing a custom property name to the first argument of var()) the spec should mention how these equality operations work.

Unicode equality comparisons generally involve the Unicode Collation Algorithm. This incorporates the Unicode Normalization routines, which may be sufficient.

An easier-to-compute option is to say that these names are compared byte-by-byte.

@tabatkins
Copy link
Member

In Variables§2, custom property names are defined to be case-sensitive, which means they're compared code-point by code-point.

Values§3.2 also mentions this as a general rule for <custom-ident>s, but doesn't link case-sensitive properly; I'll fix that.

The rest of CSS is limited to ASCII and is ASCII case-insensitive.

@xfq xfq added the i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. label Jun 1, 2018
@tabatkins tabatkins added Closed Rejected as Invalid Testing Unnecessary Memory aid - issue doesn't require tests labels Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Rejected as Invalid css-variables-1 Current Work i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. Testing Unnecessary Memory aid - issue doesn't require tests
Projects
None yet
Development

No branches or pull requests

3 participants