From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37159: 26.1; svg images in eww Date: Tue, 27 Aug 2019 10:47:52 +0300 Message-ID: <83o90bdp7b.fsf@gnu.org> References: <87ftlsoxco.fsf@host-4-24.fizyka.umk.pl> <87mufzbxit.fsf@gnus.org> <87a7bz809e.fsf@is.umk.pl> <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> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="254645"; mail-complaints-to="usenet@blaine.gmane.org" 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 Tue Aug 27 09:48:16 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 1i2WDA-0014A0-0c for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Aug 2019 09:48:16 +0200 Original-Received: from localhost ([::1]:47698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2WD8-0000U8-UJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Aug 2019 03:48:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59364) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2WCx-0000Te-KC for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2019 03:48:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2WCw-0000aL-Hk for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2019 03:48:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38784) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i2WCw-0000aG-DE for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2019 03:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i2WCw-0004y1-A3 for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2019 03:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Aug 2019 07:48: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.156689207819084 (code B ref 37159); Tue, 27 Aug 2019 07:48:02 +0000 Original-Received: (at 37159) by debbugs.gnu.org; 27 Aug 2019 07:47:58 +0000 Original-Received: from localhost ([127.0.0.1]:47605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2WCs-0004xk-5n for submit@debbugs.gnu.org; Tue, 27 Aug 2019 03:47:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2WCq-0004xX-M6 for 37159@debbugs.gnu.org; Tue, 27 Aug 2019 03:47:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i2WCj-0000QM-8q; Tue, 27 Aug 2019 03:47:49 -0400 Original-Received: from [176.228.60.248] (port=4823 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i2WCi-000292-Nf; Tue, 27 Aug 2019 03:47:49 -0400 In-reply-to: <87zhjv2iwn.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 27 Aug 2019 08:59:20 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:165943 Archived-At: > From: Lars Ingebrigtsen > Cc: tpiotrowski@is.umk.pl, 37159@debbugs.gnu.org > Date: Tue, 27 Aug 2019 08:59:20 +0200 > > 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. > > But is it worth it just to display these unusually degenerate SVG > images? I don't know enough to have an opinion that matters. > > Btw, why does EWW break the text line when it encounters an image? > > When doing the layout, in general the dimensions of the images isn't > known -- the images are fetched asynchronously after displaying the > text. > > There's also a historical reason -- the code was written before shr did > pixel-based layouts, so even if it knew the dimensions, it couldn't do > anything about it. That could be fixed now (so that if the has a > width attribute, the layout engine could use it and insert the > placeholder there). Something to work on in the future, I think. Thanks.