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

Support percentage based RGB as output format #9

Merged
merged 2 commits into from
Nov 28, 2012

Conversation

DennisKehrig
Copy link
Contributor

Enhancement in order to fix adobe/brackets#2050

@bgrins
Copy link
Owner

bgrins commented Nov 27, 2012

@DennisKehrig thanks for contributing this. As the CSS spec allows percentage values inside of RGB colors this seems like a reasonable output format. In some ways I wish there was a way to handle this without adding a new function on the object (as I could see possibly wanting hsl or hsv with multiple output formats at some point). But I guess we could just cross that bridge when it comes.

Do you mind adding a couple of tests to test/test.js to confirm this percentage string behavior?

@DennisKehrig
Copy link
Contributor Author

@bgrins: There you go! Are these sufficient?

@bgrins bgrins merged commit 14be72c into bgrins:master Nov 28, 2012
@bgrins
Copy link
Owner

bgrins commented Nov 28, 2012

@DennisKehrig Thanks!

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

Successfully merging this pull request may close these issues.

cannot invoke color editor with rgb color value in percentage.
2 participants