-
-
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
cannot parse grid values 1/-1 #126
Comments
Would be happy to review a PR which resolved this issue. |
For postcss-values-parser@2.0.1 I have a similar issue about incorrectly recognizing nagetive number as 2 tokens: Evaluate below expression require('postcss-values-parser)('2*-1').tokens result is
Unfortunatly, this breaks project that is consist of
|
What happens if you close the quotation mark on our statement?
|
My bad, the missing 'quote' mark is just a copy-paste typo of dummy code in my comment, the original code to repreduce this issue is require('postcss-values-parser)('calc(var(--mdc-layout-grid-gutter-desktop, 24px)/2*-1)').tokens It can be repreduced @caraya, thanks for pointing out typo. And I found my issue is same as #138 |
This is resolved in the |
Some shorthand placement CSS grid rules with a
-1
value cause errors. The value is a valid grid shorthand declaration so I'm suspecting a bug on the parser.How Do We Reproduce?
gulpfile.js
CSS
This is the specific rule that causes the error. It is valid shorthand CSS grid placement syntax (start on the first column and end on the first column in reverse order). There are other column placement rules in the stylesheet and they all work
Expected Behavior
The rule would be converted or passed as valid.
Actual Behavior
it produces the following error:
The text was updated successfully, but these errors were encountered: