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 }}
Repository navigation
list.comma() and list.space() split on separators inside CSS comments #2161
list.comma() / list.space() / list.split() already skip separators inside quotes and functions, but they still treat , / spaces inside /* … */ comments as real separators.
Rule#selectors is implemented as list.comma(this.selector), so any selector string that still contains comments (programmatic trees, custom syntax, or raw sources) is split incorrectly.
The parser itself strips comments out of selectors and declaration values, which is why this does not show up on a typical parse() round-trip. The public list.* helpers are documented as a safe split, though, and they already special-case quotes, functions, and escapes.
Activity