mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-30 13:08:48 -06:00
main's knockout patch (hayro (22)) draws each element of a knockout group once in erase mode, to clear what the group drew under the element's shape. An isolated DeviceCMYK group nested in such an element still took the CMYK path in that pass, and drew its finished pixels with Normal blending over what should have been cleared. draw_isolated_cmyk_group now declines while erasing, so the group's contents are interpreted in erase mode as before. The new test fails without the fix (the centre shows red through the magenta: [240, 63, 168] against [245, 127, 197] for the DeviceRGB control). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9