You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CSS Selector with umlaut broken in production mode with emulated view encapsulation #48524
Which @angular/* package(s) are the source of the bug?
compiler
Is this a regression?
No
Description
Encapsulated styles using CSS class selectors with umlauts don't work properly in production mode. The compiler inserts the ngcontent placeholder after the umlaut and breaks the selector.
It works in development mode.
It works when using no encapsulation or Shadow DOM.
The bug does not occur for all words, some examples:
optimization.minify triggers the EsBuild optimizer which escapes the selector : .über {} becomes .\fc ber { } (demo on stackblitz). This selector with a space after the escaped character is valid. The space is inserted every time the special character is followed by a hex characters (0-9a-f)
AOT messes everything up because it interpret's this as 2 different selectors.
Activity
JeanMeche commentedon Dec 17, 2022
I was able to reproduce it with both
optimization.minify: true&aot: true.https://stackblitz.com/edit/angular-pbc8vn
Why both :
optimization.minifytriggers the EsBuild optimizer which escapes the selector :.über {}becomes.\fc ber { }(demo on stackblitz). This selector with a space after the escaped character is valid. The space is inserted every time the special character is followed by a hex characters (0-9a-f)fix(compiler): handle css selectors with space after an escaped chara…
fix(compiler): handle css selectors with space after an escaped chara…
fix(compiler): handle css selectors with space after an escaped chara…
angular-automatic-lock-bot commentedon Feb 24, 2023
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.