Subject: Re: bug#77841: Some svg image's black color is replaced by emacs's theme foreground color

From: Ihor Radchenko <[email-masked]>
Date: Sat, 19 Apr 2025 11:37:35 +0000

Alan Third <[email-masked]> writes:

>> Consider the attached svg image.
>>  ...
>> Seemingly, background and foreground are inverted in the second case.
>> 
>> What am I missing?
>
> The image draws a rectangle in the current foreground colour, black in
> the first case and red in the second, and then fills the text with
> "#fff".
>
>     <g fill='#fff'>

This image was generated by dvisvgm.
It indeed explicitly draws a rectangle over the page, effectively
inverting background and foreground (Emacs has no reason to apply
background color to the rect object fill).
That's unfortunate, but explains the observed behavior.

Feel free to close this bug report.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>