Title: CSS Selector with umlaut broken in production mode with emulated view encapsulation · Issue #48524 · angular/angular · GitHub
Open Graph Title: CSS Selector with umlaut broken in production mode with emulated view encapsulation · Issue #48524 · angular/angular
X Title: CSS Selector with umlaut broken in production mode with emulated view encapsulation · Issue #48524 · angular/angular
Description: 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 pl...
Open Graph Description: 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 mod...
X Description: 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...
Opengraph URL: https://github.com/angular/angular/issues/48524
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CSS Selector with umlaut broken in production mode with emulated view encapsulation ","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\ncompiler\r\n\r\n### Is this a regression?\r\n\r\nNo\r\n\r\n### Description\r\n\r\nEncapsulated 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.\r\n\r\nIt works in development mode.\r\nIt works when using no encapsulation or Shadow DOM.\r\n\r\nThe bug does not occur for all words, some examples:\r\n\r\n- ❌ `.über {}` => `.\\fc[_ngcontent-fji-c1] ber[_ngcontent-fji-c1] {}` \r\n- ❌ `.prüfung {}` => `.pr\\fc[_ngcontent-fji-c1] fung[_ngcontent-fji-c1] {}` \r\n- ✅ `.zufällig {}` => `.zuf\\e4llig[_ngcontent-fji-c1] {}`\r\n\r\n\u003cimg width=\"1068\" alt=\"css-umlauts\" src=\"https://user-images.githubusercontent.com/16229645/208242873-12a7a05c-dadc-4365-a1bd-e1bf757f692c.png\">\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\nRepo: https://github.com/rothsandro/repro.ng-css-umlauts \r\nDeployed: https://leafy-starburst-2edda1.netlify.app/\r\n\r\n### Please provide the exception or error you saw\r\n\r\n_No response_\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```true\r\nAngular CLI: 15.0.4\r\nNode: 16.13.0\r\nPackage Manager: npm 8.1.0\r\nOS: darwin arm64\r\n\r\nAngular: 15.0.4\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, router\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1500.4\r\n@angular-devkit/build-angular 15.0.4\r\n@angular-devkit/core 15.0.4\r\n@angular-devkit/schematics 15.0.4\r\n@schematics/angular 15.0.4\r\nrxjs 7.5.7\r\ntypescript 4.8.4\r\n```\r\n\r\n\r\n### Anything else?\r\n\r\n_No response_","author":{"url":"https://github.com/rothsandro","@type":"Person","name":"rothsandro"},"datePublished":"2022-12-17T12:53:24Z","url":"https://github.com/angular/angular/issues/48524"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9ba4668e-c729-bdb3-4f41-267f94d2ba70 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EC0:7A60E:80B604:A87A25:6B00DAF5 |
| html-safe-nonce | c8e7c1aaa613bb274869c104383760ba95bbacd90c98ab00f114a48ae9d3c457 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUMwOjdBNjBFOjgwQjYwNDpBODdBMjU6NkIwMERBRjUiLCJ2aXNpdG9yX2lkIjoiMTAzMzkwOTE5MDk5MDU1MTc5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dd7be997f6ef00ec3ab6ab3429c05d2b0655eb7c744019b6d52b8cde1e69eb66 |
| hovercard-subject-tag | issue:1501376040 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/48524/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1a93889e86ee3007f93d5698527edb87e8e3eeb136b3bdf5c6bb8d80016d421b/angular/angular/issues/48524 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1a93889e86ee3007f93d5698527edb87e8e3eeb136b3bdf5c6bb8d80016d421b/angular/angular/issues/48524 |
| og:image:alt | 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 mod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rothsandro |
| hostname | github.com |
| expected-hostname | github.com |
| None | a481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 84c8c5cc25e2fb7f2308428458538436baecc6d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width