css being reordered in devkit 0.1102.11, causing styles to not work correctly #20693
Closed
1 of 15 tasks
Labels
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, this previously worked in
@angular-devkit/[email protected]
.Possibly related to 8abb3e4
Description
When running a production build of an Angular app, imported stylesheets have their properties reordered, leading to styles being incorrectly applied when running the app in a browser.
🔬 Minimal Reproduction
Code Reproduction: https://github.com/liamdebeasi/ng-css-issue
npm install
in the11.2.10
directory. This will install Angular 11.2.10 and its dependencies.ng build --prod
.styles
file that has been generated inside of thewww
directory. The following CSS should be in that file:npm install
in the11.2.11
directory. This will install Angular 11.2.11 and its dependencies.ng build --prod
.styles
file that has been generated inside of thewww
directory. The following CSS should be in that file:Expected Behavior
In Angular 11.2.11, I would expect that the ordering of my CSS is preserved as in Angular 11.2.10 and earlier.
Actual Behavior
In Angular 11.2.11, my CSS is reordered when the app is compiled.
Other Info
Because of this reordering the "ion-padding-start" class no longer adds padding on the starting side of an element as expected. This is because
padding-left
is being modified afterpadding-start
in Angular 11.2.11 even though the source CSS haspadding-left
being modified beforepadding-start
.This is impacting Ionic Framework applications (ionic-team/ionic-framework#23266)
🌍 Your Environment
The text was updated successfully, but these errors were encountered: