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

maps should not be directly output into css #1246

Closed
chriseppstein opened this issue May 27, 2015 · 0 comments
Closed

maps should not be directly output into css #1246

chriseppstein opened this issue May 27, 2015 · 0 comments

Comments

@chriseppstein
Copy link
Contributor

maps, like numbers with complex units, are never a value that can be understood by css, so ruby sass gives an error when this is attempted.

The following sass file:

$m: (a: 1, b: 2);

.foo {
  interpolated: "#{$m}";
  direct: $m;
  inspected: inspect($m);
}

in libsass compiles to:

.foo {
  interpolated: "(a: 1, b: 2)";
  direct: (a: 1, b: 2);
  inspected: (a: 1, b: 2); }

But an error should have been given. Only the third line, using the inspect function should have succeeded.

@xzyfer xzyfer self-assigned this May 28, 2015
@xzyfer xzyfer modified the milestone: 3.2.5 May 28, 2015
@mgreter mgreter modified the milestones: 3.4, 3.5 Jun 13, 2015
mgreter added a commit to mgreter/libsass that referenced this issue Jul 14, 2015
@mgreter mgreter modified the milestones: 3.3, 3.5 Jul 14, 2015
@mgreter mgreter assigned mgreter and unassigned xzyfer Jul 14, 2015
mgreter added a commit to mgreter/libsass that referenced this issue Jul 14, 2015
mgreter added a commit to mgreter/libsass that referenced this issue Jul 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants