Skip to content

Slashes should not be interpreted as division in an argument of a missing function #1417

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

Closed
andrew-skybound opened this issue Jul 29, 2015 · 1 comment

Comments

@andrew-skybound
Copy link

Slashes should not be interpreted as division when they appear in arguments for missing functions according to the same rules as when a slash appears in a declaration.

Input:

@function test($a, $b) {
  @return ($a $b);
}
p {
  foo: 1px / 2px;
  foo: 1px / round(1.5);
  foo: test(1px / 2px, 1px / round(1.5));
  foo: missing(1px / 2px, 1px / round(1.5));        // output will be incorrect in libsass
  foo: call(missing, 1px / 2px, 1px / round(1.5));  // output will be incorrect in libsass
}

Ruby SASS Output:

p {
  foo: 1px / 2px;
  foo: 0.5px;
  foo: 0.5 0.5px;
  foo: missing(1px/2px, 0.5px);
  foo: missing(1px/2px, 0.5px);
}

Libsass Output:

p {
  foo: 1px/2px;
  foo: 0.5px;
  foo: 0.5 0.5px;
  foo: missing(0.5, 0.5px);
  foo: missing(0.5, 0.5px);
}
xzyfer added a commit to xzyfer/sass-spec that referenced this issue Aug 4, 2015
@xzyfer
Copy link
Contributor

xzyfer commented Aug 4, 2015

Spec added sass/sass-spec#462

@xzyfer xzyfer added this to the 3.4 milestone Aug 4, 2015
@mgreter mgreter modified the milestones: 3.3.4, 3.4 Jan 9, 2016
@xzyfer xzyfer modified the milestones: 3.3.4, 3.3.5 Mar 19, 2016
@mgreter mgreter self-assigned this Apr 8, 2016
xzyfer added a commit to xzyfer/sass-spec that referenced this issue Apr 10, 2016
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