Css generated for Firefox ReadOnly to -moz-readonly does not work after upgrading angular 8 to 9 #17325
Closed
2 of 15 tasks
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, after upgrading from Angular 8 to 9, dedicated css for firefox about "ReadOnly" when associate with other rules is not well generated during ng serve.
Description
This issue appear only on Firefox.
In Angular 8, a piece of style (from SCSS) code is automatically generated to ensure the compatibility with firefox about :read-only. Code is duplicated with :-moz-read-only . (with firefox prefixe equivalent)
In Angular 9, this piece of style code is duplicated alone, in consequence, all the css block code is not duplicated, then, not interpreted.
(I supposed first that was due to browserslist package, but package version is equal)
To illustrate, this code :
Is perfectly generated in angular cli 8:
But wrongly generated in angular cli 9
In consequence, the other css style associate to the same css rule, :focus, is never interpreted on firefox due to :read-only which is unknown for this browser.
🔬 Minimal Reproduction
Here is a repository with angular 9, where the bug appear :
https://github.com/albanlorillard/angular9-readonly-bug
Here is a repository with angular 8, where the bug NOT appear :
https://github.com/albanlorillard/angular8-readonly-bug
In both case,
use ng serve --prod
and run with Firefox
inspect in the style editor.
🔥 Exception or Error
No exception.
🌍 Your Environment
Anything else relevant?
Specific on Firefox browser.
I test on Firefox developer 75.0b9 (64 bits)
And Firefox 73.0 (64-bit)
The text was updated successfully, but these errors were encountered: