mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 14:16:28 +03:00
Review fixes for the sampled-contrast path (#560): - A base64 data URI is refused before anything is copied or decoded when its payload would exceed the 24 MiB budget a file gets, the cache keys it by length and hash instead of holding the URI, and a payload without whitespace is decoded in place. - A linked stylesheet from another directory has its relative url()s rewritten to page-relative form when it is inlined, so the sampler resolves the image the winning declaration named against one base instead of guessing across every sheet directory. - Every `background` shorthand resets backgroundRepeat and backgroundSize to what it names, the defaults when it names nothing, so `background: #fff` no longer leaves a stale no-repeat behind for a later background-image; CSS-wide keywords pass through and a bare var() value is left alone the way the expansion leaves it. Tests cover the bound, the rewrite (relative, parent, quoted, query, root-relative, remote, data, fragment, whitespace), and the reset order. Goldens are unchanged. AI assistance: Claude Code (Claude Fable 5.1), on maintainer instruction. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>