Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
From downstream issue cssnano/cssnano#880 which is from downstream issue angular/angular-cli#16910.
Using a
calc()command with 3+ variable fallbacks seems to break the parser.For example, paste the following code into the CSS Nano playground (which I'm told uses
postcss-calcviacssnano-preset-default:Then look at the JavaScript console and see:
Work around is to use intermediary variables: