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 }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
theming: parsing a registered style with Media Queries or keyframes produces incorrect rules #9869
What is the issue? * When a CSS stylesheet containing media queries (or keyframes or anything that can have nesting) is registered using the Theming Provider, Angular Material processes it in a wrong way causing an incorrect result.
Now the string representing the CSS is split using a regex that doesn't take into account nesting, causing nested rules to be considered independent rules. For example:
Activity
fix(theming): fix CSS with nested rules parsing when registering a theme
test(theming): test register style using a CSS with nested rules
style(): fix code styles
fix(theming): ignore anything inside quotes when parsing a CSS string
test(theming): test register style using a CSS with multiple nesting …
style(): improve comments and variable names
fix(theming): fix CSS with nested rules parsing when registering a theme
fix(theming): fix CSS with nested rules parsing when registering a theme
fix(theming): fix CSS with nested rules parsing when registering a theme
fix(theming): fix CSS with nested rules parsing when registering a theme
fix(theming): fix CSS with nested rules parsing when registering a theme
43 remaining items
Splaktar commentedon Dec 6, 2020
Some details on the given CodePen and this reproduction:
whitetext instead of blue because the CSS rule is rendered asInstead of
Broken
It should render this way
fix(theming): fix CSS with nested rules parsing when registering a theme
fix(theming): fix CSS with nested rules parsing when registering a theme