-
Notifications
You must be signed in to change notification settings - Fork 438
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
short hex is not understood (40ff should be understood as 04 00 ff) #58
Comments
Use this |
I don't understand the issue - a hex character should be 3 or 6 characters. If it cannot be represented with 3 characters then the input should be put into the 6 character notation. From http://www.w3.org/TR/css3-color/#rgb-color:
|
There are hex that are 4 like in the example in the title. I don't know if is standard or not, but might be used in this lib to accept more input types. Not only hex3 or hex6. |
I try to follow the CSS standard as closely as possible for the accepted string input to prevent any surprises. I've never seen the 4 character hex in any standard, so I'm inclined not to add it. You should be able to wrap the tinycolor function to support this use case using your example code in this issue. |
ok, no problem then. I was not using for css but I was using it for a graphical application that uses webgl... I found that lib not limited to css |
No description provided.
The text was updated successfully, but these errors were encountered: