1. create a new app 2. edit App.css add this to the rule for `.App-header` ``` --margin: 1.5em; margin: calc((var(--margin)/2)); ``` notice the redundant braces in `calc`. 3. run the project in dev mode, it has a margin as expected. 4. build the project and serve it, there is no margin to be seen. 5. look at the generated main.xxxx.css, `calc` is gone! ```margin:(var(--margin)/2)``` is a broken rule! Some research: - Without redundant braces, it works. - I tried it in https://cssnano.co/playground/ and it doesn't break the rule, neither does https://preset-env.cssdb.org/playground/
add this to the rule for
.App-headernotice the redundant braces in
calc.calcis gone!margin:(var(--margin)/2)is a broken rule!Some research: