We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There seems to be an issue with how percentages are interpreted when input to rgb() and rgba() functions. I have the following SASS:
.box1 { color: rgb(20%, 20%, 20%); } .box2 { color: rgb(32, 32, 32); } .box3 { color: rgba(20%, 20%, 20%, 0.7); }
Compiling with ruby sass gives me the expected output:
.box1 { color: #333333; } .box2 { color: #202020; } .box3 { color: rgba(51, 51, 51, 0.7); }
Whereas sassc seems to return wrong values for the percentage definitions:
sassc
.box1 { color: white; } .box2 { color: #202020; } .box3 { color: rgba(255, 255, 255, 0.7); }
Note that .box2 with integer values is interpreted correctly.
.box2
The text was updated successfully, but these errors were encountered:
Thanks @terje we've confirmed this is still an issue.
Sorry, something went wrong.
Add specs for issue 1332
2c4a834
This PR add specs for sass/libsass#1332
Spec added sass/sass-spec#445
Fix color allocation from percentages
170b312
Fixes sass#1332
9689040
b5c3470
f2e2499
mgreter
No branches or pull requests
There seems to be an issue with how percentages are interpreted when input to rgb() and rgba() functions. I have the following SASS:
Compiling with ruby sass gives me the expected output:
Whereas
sassc
seems to return wrong values for the percentage definitions:Note that
.box2
with integer values is interpreted correctly.The text was updated successfully, but these errors were encountered: