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

0fr is erroneously compressed to 0 #2570

Closed
jazzzz opened this issue Dec 15, 2020 · 2 comments · Fixed by #2578
Closed

0fr is erroneously compressed to 0 #2570

jazzzz opened this issue Dec 15, 2020 · 2 comments · Fixed by #2578
Labels

Comments

@jazzzz
Copy link
Contributor

jazzzz commented Dec 15, 2020

Input:

*
  grid-template-columns 0fr 1fr

Compiling this file with Stylus 0.54.8 with the --compress option gives:

*{grid-template-columns:0 1fr}

The expected output is:

*{grid-template-columns:0fr 1fr}
jazzzz added a commit to F4-Group/fack that referenced this issue Dec 15, 2020
It has some bugs (see stylus/stylus#2570), and
clean-css already does a better job.
@tborychowski
Copy link

The same is with deg, where 0deg gets compressed to 0, which does not work (e.g. in firefox).

@iChenLei
Copy link
Member

Will fix at next version

These code wrote at 8 years ago by tj, it'd outdated for a long time

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