mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
Comments are replaced with a placeholder before the styles are scoped. A
comment that is placed inside of a selector, e.g. `.a /* comment */ {}` or
`.a, /* comment */ .b {}`, ended up as its own selector part and got the
content attribute appended, which changed what the rule matches (e.g.
`.a[c] [c] {}` and `.a[c], [c] .b[c] {}`).
Parts that only consist of comment placeholders are now left untouched.
(cherry picked from commit 8acf703db6)