From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tomasz Piotrowski Newsgroups: gmane.emacs.bugs Subject: bug#37159: 26.1; svg images in eww Date: Wed, 04 Sep 2019 17:04:33 +0200 Message-ID: <87lfv42jcu.fsf@potas.fizyka.umk.pl> 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> <83o90bdp7b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="174247"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.3.1; emacs 26.1 To: Eli Zaretskii , Lars Ingebrigtsen , 37159@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 04 17:05:14 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 1i5WqQ-000j1O-5V for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Sep 2019 17:05:14 +0200 Original-Received: from localhost ([::1]:34190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5WqO-0008Oh-SR for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Sep 2019 11:05:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56136) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5WqF-0008OP-B8 for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2019 11:05:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5WqE-0003n7-5A for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2019 11:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53574) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5WqE-0003mo-1z for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2019 11:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i5WqD-0004ep-SD for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2019 11:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tomasz Piotrowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Sep 2019 15:05:01 +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.156760948817871 (code B ref 37159); Wed, 04 Sep 2019 15:05:01 +0000 Original-Received: (at 37159) by debbugs.gnu.org; 4 Sep 2019 15:04:48 +0000 Original-Received: from localhost ([127.0.0.1]:34160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i5Wpy-0004e3-80 for submit@debbugs.gnu.org; Wed, 04 Sep 2019 11:04:48 -0400 Original-Received: from mail.fizyka.umk.pl ([158.75.5.252]:52232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i5Wpw-0004dl-9R for 37159@debbugs.gnu.org; Wed, 04 Sep 2019 11:04:44 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.fizyka.umk.pl (Postfix) with ESMTP id AC0ECA08EA; Wed, 4 Sep 2019 17:04:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at fizyka.umk.pl Original-Received: from mail.fizyka.umk.pl ([127.0.0.1]) by localhost (mail.fizyka.umk.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id f06_FCqwuZD3; Wed, 4 Sep 2019 17:04:37 +0200 (CEST) Original-Received: from potas.fizyka.umk.pl (potas.fizyka.umk.pl [158.75.4.13]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.fizyka.umk.pl (Postfix) with ESMTPSA id 9DBDAA0884; Wed, 4 Sep 2019 17:04:37 +0200 (CEST) In-reply-to: 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:166204 Archived-At: Hi, What are the plans regarding resolving this bug? Tomasz Tomasz Piotrowski writes: > Well, my opinion on this is that either I have to keep switching to Chrom= e to use wikipedia, or I could use eww for my work. I don=E2=80=99t know ho= w many others have the same issue, but it is a serious flaw in eww from my = point of view. Many thanks to Lars for pinpointing the reason of certain sv= g images not rendering properly in eww. > > Tomasz > > > > Wiadomo=C5=9B=C4=87 napisana przez Eli Zaretskii w dniu 27= .08.2019, o godz. 09:47: > >>> From: Lars Ingebrigtsen >>> Cc: tpiotrowski@is.umk.pl, 37159@debbugs.gnu.org >>> Date: Tue, 27 Aug 2019 08:59:20 +0200 >>>=20 >>> 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. >>>=20 >>> But is it worth it just to display these unusually degenerate SVG >>> images? >>=20 >> I don't know enough to have an opinion that matters. >>=20 >>>> Btw, why does EWW break the text line when it encounters an image? >>>=20 >>> When doing the layout, in general the dimensions of the images isn't >>> known -- the images are fetched asynchronously after displaying the >>> text. >>>=20 >>> 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). >>=20 >> Something to work on in the future, I think. >>=20 >> Thanks.