CSS encapsulation breaks classes with escaped : colon in name #31844
Labels
area: core
Issues related to the framework runtime
core: CSS encapsulation
freq1: low
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
state: has PR
type: bug/fix
Milestone
🐞 bug report
Affected Package
Not sure sorry..
Is this a regression?
Not sure sorry..
Description
When inside custom.component.scss, css encapsulation with auto-assigned angular data-attribute does not works as intended when the escaped character includes a colon.
REPRODUCTION
WHAT IS EXPECTED
WHAT IS RETURNED
As you can see the data-attribute that is assigned shifts in between the backslash and the colon which makes this class unusable.
WORKAROUND
Workaround to solve this is to turn off css encapsulation.
🌍 Your Environment
Angular 7
The text was updated successfully, but these errors were encountered: