Files
jhjh1214 b6f9cc5d70 fix(compiler): do not scope comments placed inside of a selector
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)
2026-10-12 23:08:57 +00:00
..
2026-02-09 12:15:57 -08:00