-
Notifications
You must be signed in to change notification settings - Fork 141
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-typed-om] StylePropertyMap order #700
Comments
I currently have some tests for the ordering, but it sounds like there are some subtle corner cases with code-point vs code-units? |
Comparing by code point is already done elsewhere in CSS; sorting should be fine too. You're right that testing for that detail would be nice. @darrnshn "code units" are JS "characters", basically - the UTF-16 two-byte chunks. So something from the astral planes is two units wide. Shouldn't be hard to put together a test that sorts oppositely depending on whether you're using code points or code units. I'll look into it. |
Here we go, a custom property named |
Cool, thanks for the example. I'll write a test for this. |
Hmm sorting (non-custom) CSS properties by code point puts |
Ah, didn't think about single-dash prefixed things. Let's amend the spec to put them between normal and double-dash. |
This seems potentially problematic given JavaScript strings. Do you have tests ensuring this is actually what's being used by implementations and they don't sneakily use code units?
The text was updated successfully, but these errors were encountered: