-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Can't parse font property font-size/line-height syntax #121
Comments
Further investigation shows that when it detects the
While
|
WorkaroundAdd spaces around the
|
Yeah how to deal with operators is an impossible battle. Fix it for one scenario, breaks it for another. |
@shellscape I'm not very familiar with the postcss parser. Is there anyway we can get the parser to look back? If the last token is a bracket and the extracted last token (I.e. empty string before If you could give me a pointer on understanding how the parser is working I'd be happy to explore this. Unfortunately with my limited experience I got lost. |
Thanks for the issue. PRs are welcome |
Faced this issue with external library. What is the simplest way to fix these expressions before processing? |
This is resolved in the |
How Do We Reproduce?
require('postcss-values-parser').parse('var(--font-size)/var(--line-height)');
Example:
font: normal normal normal var(--font-size)/var(--line-height) var(--font-family);
Expected Behavior
Parsed
Actual Behavior
The text was updated successfully, but these errors were encountered: