-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
RGBA/HSLA colors are incorrectly encoded #4351
Comments
Related to #4333. |
Maybe it is needed for older IEs since they have only partial support? |
Hmmm, that's actually quite interesting, this issue relates to a fact that Still the fact that one part removes |
I suppose we are doing it in at least 2 places (could be wrong). If yes, it would be good to unify it into one function. Playing around with magic strings results in such issues.
Yeah, looks like, so it would be good to go with hexadecimal values. |
The issue is not as trivial as it seems. The whole normalization of colors happens in My proposal is to unify normalization in |
☝🏻 I strongly agree that a normalisation would be useful and help simplify the whole plugin (actually a few plugins). You are probably aware of it but I want to mention that we also use color dialog in |
I went a simple way, with just adding support for RGBA/HSLA values and extracted rewriting color handling flow into a separate issue. |
Closed in #4591 |
Type of report
Bug
Provide detailed reproduction steps (if any)
hsla(150,50%,52%,0.2)
color.Expected result
Color should be converted to the correct hashcode including the alpha channel. Note that on the HTML level we are still keeping the original value, so this conversion shouldn't introduce a regression.
It would be good to find out why we are actually unifying colors to hashcode and if it's not really needed, we could instead use the original color value for every color including rgb/hsl.
Actual result
Color is converted to
#rgba(71, 194, 133, 0.2)
Other
The issue is also reproducible with rgba colors.
The text was updated successfully, but these errors were encountered: