Using more complex calculations in CSS calc expressions will be incorrect in production builds #17890
Labels
area: @angular-devkit/build-angular
devkit/build-angular:browser
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 bug report
Affected Package
Is this a regression?
I don't think so...
Description
When using more complex calculations in CSS
calc
expressions, production builds will be incorrect. Have look at the sample repo:I have added the following to
styles.css
:which gets compiled to the following in production builds (
ng build --prod
):I think the problem comes from: postcss/postcss-calc#107. But not sure if this plugin is used under the hood.
Unfortunately we cannot disable specific PostCSS plugins: #8427
🔬 Minimal Reproduction
See: https://github.com/loxy/angular-cs-calc-bug
🌍 Your Environment
Angular Version:
Anything else relevant?
No
The text was updated successfully, but these errors were encountered: