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

hex-length is wrong about how short hexes work #341

Closed
benthemonkey opened this issue Oct 23, 2015 · 1 comment
Closed

hex-length is wrong about how short hexes work #341

benthemonkey opened this issue Oct 23, 2015 · 1 comment
Assignees
Labels

Comments

@benthemonkey
Copy link
Member

The test cases and code suggest that the following hex values are equivalent:
#a2c == #a2ca2c <= wrong

That's not how it works... This is how it works:
#a2c == #aa22cc

(Here's a source: https://www.w3.org/community/webed/wiki/CSS_shorthand_reference#Color)

@DanPurdy
Copy link
Member

Wow, I don't even know how I managed that! My bad..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants