mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-14 15:16:35 +03:00
The sheet url rewrite skipped comments by looking for `/*` in the raw text, which is not how the CSS tokenizer sees it: a `/*` inside a quoted string or an unquoted url() is content, so `content: "a/*b"` turned the rest of the sheet into a comment and its relative urls stayed sheet-relative, where the sampler could not find them. The scan is a small state machine now (code, string, unquoted url) that mirrors the tokenizer: a string ends at its quote or at a raw newline, a url at its closing paren, and only a `/*` in code opens a comment. Tests pin a string with a marker, a url with a marker, and a real comment after a string. AI assistance: Claude Code (Claude Fable 5.1), on maintainer instruction. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>