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

Incorrectly parsing calc(expr) functions #4

Open
vladsandu opened this issue Mar 23, 2021 · 0 comments
Open

Incorrectly parsing calc(expr) functions #4

vladsandu opened this issue Mar 23, 2021 · 0 comments

Comments

@vladsandu
Copy link

We seem to be incorrectly parsing calc(expr) functions.

Input CSS:

body { 
	width: calc(100% - 32px);
	height: calc(100% - 64px); 
}

Output CSS:

body { 
	width: calc(100% = 32px);
	height: calc(100% = 64px); 
}

Short-term Workaround:
Escaping the operator seems to fix the issue: width: calc(100% \- 32px)

Digging through the code, this is caused by the ExCSS Stylesheet parser. We are using a very old version of this, where this issue was probably occurring: TylerBrinks/ExCSS#74. This seems to have been fixed in newer versions.

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