From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#37159: 26.1; svg images in eww Date: Sat, 14 Sep 2019 09:59:51 +0100 Message-ID: <20190914085951.GA37515@breton.holly.idiocy.org> References: <87tva594me.fsf@gnus.org> <87d0gtg3z0.fsf@is.umk.pl> <83v9ulhf49.fsf@gnu.org> <87r259hdhr.fsf@is.umk.pl> <83sgpphd06.fsf@gnu.org> <877e707cdh.fsf@gnus.org> <83v9ukfjum.fsf@gnu.org> <87sgpo4b80.fsf@gnus.org> <83r258fj6o.fsf@gnu.org> <87zhjv2iwn.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="127221"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.12.0 (2019-05-25) Cc: tpiotrowski@is.umk.pl, 37159@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 14 11:01:54 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i93wH-000Wqf-AU for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Sep 2019 11:01:53 +0200 Original-Received: from localhost ([::1]:49062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i93w9-0000f3-CH for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Sep 2019 05:01:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38504) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i93vW-0000ep-RD for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2019 05:01:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i93vV-0000b4-2y for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2019 05:01:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37050) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i93vS-0000XR-Dk for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2019 05:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i93vS-0000vm-9Y for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2019 05:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Sep 2019 09:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37159 X-GNU-PR-Package: emacs Original-Received: via spool by 37159-submit@debbugs.gnu.org id=B37159.15684516043444 (code B ref 37159); Sat, 14 Sep 2019 09:01:02 +0000 Original-Received: (at 37159) by debbugs.gnu.org; 14 Sep 2019 09:00:04 +0000 Original-Received: from localhost ([127.0.0.1]:45871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i93uV-0000tP-7H for submit@debbugs.gnu.org; Sat, 14 Sep 2019 05:00:03 -0400 Original-Received: from mail-wr1-f52.google.com ([209.85.221.52]:42707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i93uS-0000sU-Tr for 37159@debbugs.gnu.org; Sat, 14 Sep 2019 05:00:01 -0400 Original-Received: by mail-wr1-f52.google.com with SMTP id q14so34174240wrm.9 for <37159@debbugs.gnu.org>; Sat, 14 Sep 2019 02:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=7CoOZqHeIDiFr62yGilrJ+b8og5nfzp66ipLjskvBcE=; b=GlPJc5vkgc81TvWPJ5EcFmcA4tJQ6OB9UpR2hl8Uxzr7r9SXUKeQesQRvpXb+nYjWM 0/Erg1ADMBoN7aZbp7yjbB1+uL76NYJxjmBvz7+kTHfTmOn+4u3gqVu1SRh4/8GXWTqJ Q19TWib12Hk7Fv3JphmhweFg99UWdmDsHDXuooifFkR4CLyN7l52Sq/kq6gZJ6cfJTZ9 BC20W8ZsfKC4u4JYrv+A+SASDJRFlj3OqkZO/YlI41F8/g8NAeBCZ79aupQua4g8Gq8p qhf2RgCDcUzNhsRcYiY8nh/F5s8K41GjfQdw2a8qjNDf7mG+4vXTMHsDM+c0GWvBzxfr 6hNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=7CoOZqHeIDiFr62yGilrJ+b8og5nfzp66ipLjskvBcE=; b=YEkllpgnd2TS0SsuDKH+CmSxNrrx+rmCXIW4TBsqCqtrcxpJwkKV4pV7wW7jhBvQAa EDbK6TFDmckKWV+1NYMsIZ110deXt1vTPX1s8N04KxcZoINiobNmK7HF+8mSxm2eod71 2EEt5Fbp1qTWeDDGVoOKBGIGzSvsqCtwbW4eif0oF5jkx3wxdRdEfITKnwwMx51g5KZU mV4tngyOMEcn2DFsLH3n5JuVXv2lo7Z/W8J6XChOcoXcTR8EDqXZzyDekISBzGQ68SXE vaNqpFShKUpnAHKUtapER6QPaxZ0vhHm5ejn+uujxUle13D3yzxTZDTpXPzRoWhiI7bh pYnA== X-Gm-Message-State: APjAAAXghyKgnzQnbPWgeK31X/x5jhkZNMstq3nfzwXdrGvNI/e75QMs IP/VS493Nq6zozl4CrY52dc= X-Google-Smtp-Source: APXvYqwfgQRs9l8hVKrOmiH7hxsQhY8zyjD+Y6LiAmRBn1n02jzuCR+ZJX9IxaUcCVh7JxmlAGTtzw== X-Received: by 2002:a05:6000:105:: with SMTP id o5mr14928850wrx.51.1568451594741; Sat, 14 Sep 2019 01:59:54 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-a415-4f79-2c78-34dc.holly.idiocy.org. [2001:8b0:3f8:8129:a415:4f79:2c78:34dc]) by smtp.gmail.com with ESMTPSA id o22sm54798310wra.96.2019.09.14.01.59.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Sep 2019 01:59:53 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87zhjv2iwn.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166435 Archived-At: On Tue, Aug 27, 2019 at 08:59:20AM +0200, Lars Ingebrigtsen wrote: > Eli Zaretskii writes: > > >> All the equations on this page are SVG images: > >> > >> https://en.wikipedia.org/wiki/Banach_fixed-point_theorem > > > > For those I see empty rectangles on my display. I have no idea what > > that means, it could be that the image is displayed with white on > > white, or it could be some other issue with SVG images specific to > > MS-Windows. > > The SVG images wikipedia uses for the math are kinda special: They > specify neither the foreground colour nor the background colour. So > perhaps the svg libraries just choose a random colour for either, and > that's black-on-background in Linux and white-on-background in Windows. > > The colours are instead set via CSS, which is why they're legible in > most browsers. > > I'm not quite sure what a solution here would be. shr could parse the > SVG data (it's just XML, after all) and insert a stroke (i.e., > foreground) colour if none is specified, and one that's sufficiently > different from the background colour that the image would be kinda-sorta > readable. I don’t know if the way GTK works would be helpful: https://gitlab.gnome.org/GNOME/gtk/issues/1471 I guess you can just set some default CSS in the wrapper and if the SVG overrides it then it doesn’t matter. -- Alan Third