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

Strings treated as colors #1522

Closed
danielguillan opened this issue Sep 3, 2015 · 1 comment
Closed

Strings treated as colors #1522

danielguillan opened this issue Sep 3, 2015 · 1 comment

Comments

@danielguillan
Copy link

Libsass treats some strings (those equal to valid CSS colors) as color values instead of strings.

$foo: 'Blue';
$bar: 'blue';
$baz: to_lower_case('Blue');

@debug type-of($foo); // string (OK)
@debug type-of($bar); // color  (expected string)
@debug type-of($baz); // color  (expected string)

All the examples above should return a string. Ruby Sass behaves as expected.

@mgreter
Copy link
Contributor

mgreter commented Sep 3, 2015

This is fixed in latest master and will be in 3.3.

@mgreter mgreter closed this as completed Sep 3, 2015
saper added a commit to saper/sass-spec that referenced this issue Sep 24, 2015
saper added a commit to saper/sass-spec that referenced this issue Sep 24, 2015
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

No branches or pull requests

2 participants