Files
hyperframes/packages
Michael Wang 9e78353670 fix(core): attribute-value escapes write '<' so style text can't end early (#8250)
* fix(core): selector alias values escape '<' so style text can't end early

Attribute values that the compiler copies into selector text, such as an
SVG reference alias's rewritten value or a composition or root id in a
scope selector, are written inside a <style> element. A '<' in one could
close that element early. These values now write '<' as the CSS escape
\3c , which reads back as the same character, so each selector still
matches the same elements.

* test(core): name the '<' escape tests for what the escapes guarantee

The selector escapes write '<' as \3c themselves, so selector text cannot
end its style element even when the CSS is serialized without postcss's
own </style escaping. The test names and comments now say that.
2026-11-19 19:27:40 +00:00
..
2026-11-19 06:55:39 +00:00
…