mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-14 15:16:35 +03:00
The linked-sheet url rewrite ran one regex over the raw stylesheet text, and its unquoted `url(` form could match across lines to a `)` in a later rule, so an unclosed `url(` inside a comment would have replaced the rules between them with one rewritten path, and that text feeds the whole cascade, not only sampled contrast. Comments are now copied through untouched, a quoted url ends at its line, and an unquoted one stops at whitespace, quotes, parens, braces, or a semicolon, as CSS does. Tests pin a commented `url(`, an unclosed quote, and an unterminated comment. AI assistance: Claude Code (Claude Fable 5.1), on maintainer instruction. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>