Skip to content

v0.0.44 - SVG and color-mix

Choose a tag to compare

@TheJaredWilcurt TheJaredWilcurt released this 18 Oct 14:59
· 48 commits to main since this release
5f5ebe8

Code and release notes by GPT 5.6 Terra Max:

Fixed the color-mix() and SVG data-URI paths responsible for the failing cases.

  • Added static color(srgb ...) parsing, correct missing-channel propagation, and premultiplied-alpha interpolation in src\value\colors.js and src\value\color-mix.js.
  • Added safe SVG data-URI decoding/minification for escaped strings, UTF-8/base64 SVGs, whitespace, empty-element tags, URL-aware color shortening, and quote selection in src\value\svg-data-uri.js and src\value\svg-markup.js.
  • Protected URL payloads from subsequent CSS value optimizations so embedded SVG text, paths, and fill="none" remain intact in src\value\minify.js.
  • Fixed the embedded SVG font-family minification path. It now removes whitespace after genuine top-level family-list commas while preserving commas within CSS strings, escapes, comments, and function arguments; values containing XML entities are left intact to avoid changing decoded semantics. src\value\svg-markup.js:141-269