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

[FIX][WIP] css compression option invalid calc #112

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tobiasso85
Copy link
Contributor

@tobiasso85 tobiasso85 commented Jan 14, 2020

Chrome/Firefox browser does not support calc with 0 (number without dimension), e.g.
margin-right: calc(0 + 2rem)

Using less.js compress true can produce such invalid output (see test)

Chrome browser does not support calc with 0, e.g.
margin-right: calc(0 + 2rem)
Add test case
@tobiasso85 tobiasso85 requested a review from matz3 January 14, 2020 13:47
@tobiasso85
Copy link
Contributor Author

This is a known problem of less
less/less.js#3318

compress flag has also been deprecated

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

Successfully merging this pull request may close these issues.

1 participant