bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#44065: 28.0.50; SVG image not shown completely


From: styang
Subject: bug#44065: 28.0.50; SVG image not shown completely
Date: Sat, 17 Oct 2020 18:27:30 -0500

Emacs stopped showing SVG files completely (i.e. it is shown cropped), with 
8f42b94fe43 the offending commit. This commit intends to resolve bug#40845.

Please find the SVG file (1.svg) I use and the render image (1.png) in 
attachment. Notice the cropped part at the bottom and on the right side. The 
SVG file can be correctly viewed by Emacs 27, and other photo viewers like eog 
or gThumb. The file attached embeds an SVG element inside another, which seems 
to be discouraged by https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40845#68. 
However, according to Mozilla MDN 
(https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg),

> The svg element is a container that defines a new coordinate system and 
> viewport. It is used as the outermost element of SVG documents, but it can 
> also be used to embed an SVG fragment inside an SVG or HTML document.

> Note: The xmlns attribute is only required on the outermost svg element of 
> SVG documents. It is unnecessary for inner svg elements or inside HTML 
> documents.

So the file IS a valid SVG file. 


Attachment: 1.svg
Description: offending svg

Attachment: 1.png
Description: rendered


-- 
Sheng Yang(杨圣), PhD candidate
Computer Science Department
University of Maryland, College Park
E-mail: styang@fastmail.com
E-mail(old): yangsheng6810@gmail.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]