Closed Scrum closed 6 years ago
@GitScrum , I've put together a minimal reproduction repo at https://github.com/MaxMilton/reproduce-postcssatrulesvars-bug.
I done some playing around and I think the culprit behind this bug is variables which are commented out. Sounds a bit strange, I know, but clone my repo and try running it with and without the comment in the CSS.
Upon more testing I've found it happen whenever there's a comment on the line, it doesn't matter if the variable itself is commented or if there's a trailing comment, both result in the error.
Example:
:root {
/* --variable: true; */
}
:root {
--variable: true; /* comment */
}
@MaxMilton Thanks for your research, they help me to look in the right direction. I will try to understand this quickly.
@MaxMilton Thank you for this bug. All is fixed. We will wait for you from new bugs / offers / pool of requests :)
Please do not forget to put the star projects that you like))
Nice! Thank you. Tested and it's now working as expected :star2: :100:
based on https://github.com/GitScrum/postcss-at-rules-variables/issues/181#issuecomment-358894069
Nice :smile:
However, I just tested it and I now get this error: