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

SASS outputs small numbers in scientific notation #974

Closed
Prinzhorn opened this issue Oct 18, 2013 · 2 comments
Closed

SASS outputs small numbers in scientific notation #974

Prinzhorn opened this issue Oct 18, 2013 · 2 comments

Comments

@Prinzhorn
Copy link

$: sass --version
Sass 3.2.12 (Media Mark)

Given a file WAT.scss with the following contents

.foo {
    transform:translateZ(0.00001px);
}

the following command

sass WAT.scss

outputs

.foo {
  transform: translateZ(1.0e-05px); }

which is to my knowledge not valid CSS. Even if it would be, it would only make sense to output scientific notation if it saved at least a single byte.

Workaround: use 0.0001px which will stay untouched. (Adding another zero 0.000001px will result in 0.0px, so this is really an edge case).

@nex3
Copy link
Contributor

nex3 commented Nov 23, 2013

Scientific notation is supported by CSS, but we don't currently support it (#1020) so we probably shouldn't be emitting it.

nex3 added a commit that referenced this issue Nov 23, 2013
@nex3 nex3 closed this as completed Nov 23, 2013
nex3 added a commit that referenced this issue Nov 23, 2013
@Prinzhorn
Copy link
Author

thanks!

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