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

Alias creation does not take multiple representations of the same value into account #41

Open
Inwerpsel opened this issue Oct 24, 2023 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@Inwerpsel
Copy link
Owner

Inwerpsel commented Oct 24, 2023

A single CSS value can have multiple equivalent representations, which are currently considered as distinct values during alias creation.

  • short hex codes: #fff === #ffffff
  • keywords: white === #ffffff
  • rgb values: rgb(255,255,255) === #ffffff

Currently, creating an alias will leave these values untouched, and there's no way to assign the same alias to them. Hence the bug label, there is no good reason to not apply the alias there and no workaround.

Sometimes there's also hsl values that are really close to a hex value, however these spaces probably don't exactly map to each other in many cases. Still it could be useful to, within some margin, consider these the same if they're visually undistinguishable.

@Inwerpsel Inwerpsel added bug Something isn't working enhancement New feature or request labels Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant