Invalid CSS is produced when optimization=true #21868
Labels
area: @angular-devkit/build-angular
devkit/build-angular:browser
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
Which @angular/* package(s) are the source of the bug?
cli
Is this a regression?
No
Description
When the build is configured in
angular.json
with"optimization": true
, in some cases this optimization cases invalid CSS to be produced.For example, for CSS in a component like this:
If optimized, produces this CSS:
Using
inherit
in the shorthandmargin
is not valid.Please provide a link to a minimal reproduction of the bug
https://github.com/ychaikin/optimized
Please provide the exception or error you saw
Please provide the environment you discovered this bug in
Anything else?
No response
The text was updated successfully, but these errors were encountered: