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

A case where slash is incorrectly interpreted as division #1786

Closed
andrew-skybound opened this issue Jul 30, 2015 · 0 comments
Closed

A case where slash is incorrectly interpreted as division #1786

andrew-skybound opened this issue Jul 30, 2015 · 0 comments

Comments

@andrew-skybound
Copy link

Test Case (Sass 3.4.16):

div {
    foo: (1 (1/2) 2px/3px 2px/3px);
    foo: ((1/2) 2px/3px 2px/3px);
}

Output CSS:

div {
  foo: 1 0.5 2px/3px 2px/3px;
  foo: 0.5 0.66667 2px/3px;
}

Notice that removing the 1 from the start of the list causes the / in the 3rd item to be computed as division instead of left as a delimiter.

Is this behavior expected? The third value doesn't seem to meet any of the criteria for division as explained in the documentation, and even if I misread the documentation and it did meet the criteria, wouldn't the 4th item also be computed as division?

@nex3 nex3 closed this as completed in 215581a Aug 15, 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

1 participant