On Tue, Jul 02, 2024 at 08:24:59PM +0200, Rodrigo Arias wrote:
The implementation seems to be incomplete:
https://github.com/dillo-browser/dillo/blob/8c97be233a600f414952e458f59768e9...
The background color of the image is being assigned from the color of the <html> background. Try this patch to override it from the current element:
diff --git a/src/html.cc b/src/html.cc index a55fd2a8..649e7556 100644 --- a/src/html.cc +++ b/src/html.cc @@ -2156,6 +2156,9 @@ DilloImage *a_Html_image_new(DilloHtml *html, const char *tag, int tagsize) if (HT2TB(html)->getBgColor()) image->bg_color = HT2TB(html)->getBgColor()->getColor();
+ if (html->styleEngine->backgroundColor()) + image->bg_color = html->styleEngine->backgroundColor()->getColor(); + DilloHtmlImage *hi = dNew(DilloHtmlImage, 1); hi->url = url; html->images->increase();
And this extra rule in style.css: html {background-color: gray !important} (I need to check it in more detail)