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

min and max don't recognize decimals without leading integer #1394

Closed
connorskees opened this issue Jul 11, 2021 · 0 comments · Fixed by #1432
Closed

min and max don't recognize decimals without leading integer #1394

connorskees opened this issue Jul 11, 2021 · 0 comments · Fixed by #1432
Assignees
Labels

Comments

@connorskees
Copy link
Contributor

Not sure if this is considered a bug, but wanted to clarify behavior here.

For the given input

a {
  color: min(.2, .4);
  color: min(0.2, 0.4);
}

dart-sass will output

a {
  color: 0.2;
  color: min(0.2, 0.4);
}

The cause for this seems to be that this switch/case doesn't account for a leading decimal when parsing numbers. If this is intentional, it would be good to add this case to the spec tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants