mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
A follow-up to #3677. A data URL in CSS, `style="fill:url(data:…)"` or a paint's `url(…)`, stayed in the text the prepass searches, since only a value beginning with `data:` was left out (CodeRabbit's review of #3677). Each `url(` in an element's quoted value whose URL begins with `data:` is now left out up to the byte that closes it, its quote or `)`, so what follows it, `display:none` say, stays. A `url(` that does not close inside its value is kept whole: where the end is unclear, less is left out, never more. The scan now jumps over a data URL with one search for the byte that ends it, instead of stepping through it a byte at a time. The markers' capacity is a saturating sum, so no range can panic it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>