Bug 106674 - [testcase] SVG render not working
Summary: [testcase] SVG render not working
Status: RESOLVED DUPLICATE of bug 355872
Alias: None
Product: konqueror
Classification: Applications
Component: khtml svg (show other bugs)
Version: 4.5.4
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-02 15:06 UTC by Becheru Petru-Ioan
Modified: 2017-08-27 07:52 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
a webpage arhive showing the bug (46.94 KB, application/octet-stream)
2006-10-16 23:33 UTC, Becheru Petru-Ioan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Becheru Petru-Ioan 2005-06-02 15:06:35 UTC
Version:           3.4.1 (using KDE KDE 3.4.1)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I have this code in a html file 
<img alt="TEIOO" title="TEIOO" src="TEIOO.svg" height="30%" width="20%">
and the TEIOO.svg in the same directory. The image is not shown,but if I right click and selected from the menu the "View Image" it will open another konqueror tab and there the SVG is shown.
Comment 1 lexual 2006-10-16 23:16:54 UTC
Can you still reproduce this behaviour zvonSully?
Comment 2 Becheru Petru-Ioan 2006-10-16 23:33:40 UTC
Created attachment 18141 [details]
a webpage arhive showing the bug

includes
-a svg file called eu.svg
-index.html file:
<html>
  <head>
    <title></title>
    <meta content="">
    <style></style>
  </head>
  <body>
  <img alt="TEIOO" title="TEIOO" src="eu.svg" height="30%" width="20%">
  </body>
</html>
Comment 3 Becheru Petru-Ioan 2006-10-16 23:34:59 UTC
save the arhive as webpage.war
Comment 4 lexual 2006-10-17 02:07:11 UTC
I can confirm that svg isn't rendered in html page, but is shown when opened as svg. Interestingly, I get the same behaviour with firefox.

3.5.5
Comment 5 Bram Schoenmakers 2007-02-03 19:04:14 UTC
Can confirm with SVN 629k.
Comment 6 Becheru Petru-Ioan 2007-02-03 19:13:55 UTC
in this link an embedded svg is shown http://www.opera.com/products/desktop/svg/ : so I'm not sure it is correct(in the html standard) to display an svg using src atribute of the <img> tag as I did in my example
Comment 7 Becheru Petru-Ioan 2007-02-03 19:19:46 UTC
It is in the standard see @ http://www.w3.org/TR/SVG/concepts.html#UsageOptions :
There are a variety of ways in which SVG content can be included within a Web page. Here are some of the options:
1) A stand-alone SVG Web page
 In this case, an SVG document (i.e., a Web resource whose MIME type is "image/svg+xml") is loaded directly into a user agent such as a Web browser. The SVG document is the Web page that is presented to the user.
2) Embedding by reference
 In this case, a parent Web page references a separately stored SVG document and specifies that the given SVG document should be embedded as a component of the parent Web page. For HTML or XHTML, here are three options: 
  -The HTML/XHTML 'img' element is the most common method for using graphics in HTML pages. For faster display, the width and height of the image can be given as attributes. One attribute that is required is alt, used to give an alternate textual string for people browsing with images off, or who cannot see the images. The string cannot contain any markup. A longdesc attribute lets you point to a longer description - often in HTML - which can have markup and richer formatting.
  -The HTML/XHTML 'object' element can contain other elements nested within it, unlike 'img', which is empty. This means that several different formats can be offered, using nested 'object' elements, with a final textual alternative (including markup, links, etc). The outermost element which can be displayed will be used.
  -The HTML/XHTML 'applet' element which can invoke a Java applet to view SVG content within the given Web page. These applets can do many things, but a common task is to use them to display images, particularly ones in unusual formats or which need to be presented under the control of a program for some other reason.
3) Embedding inline
 In this case, SVG content is embedded inline directly within the parent Web page. An example is an XHTML Web page with an SVG document fragment textually included within the XHTML.
4) External link, using the HTML 'a' element
 This allows any stand-alone SVG viewer to be used, which can (but need not) be a different program to that used to display HTML. This option typically is used for unusual image formats.
5) Referenced from a CSS2 or XSL property
 When a user agent supports CSS-styled XML content or XSL Formatting Objects and the user agent is a Conforming SVG Viewer, then that user agent must support the ability to reference SVG resources wherever CSS or XSL properties allow for the referencing of raster images, including the ability to tile SVG graphics wherever necessary and the ability to composite the SVG into the background if it has transparent portions. Examples include the  'background-image' and  'list-style-image' properties that are included in both CSS and XSL.
Comment 8 Samuel Brack 2011-01-07 00:14:48 UTC
Confirmed in 4.5.4, assigning to khtml svg.
Comment 9 Andrea Iacovitti 2017-08-27 07:52:58 UTC

*** This bug has been marked as a duplicate of bug 355872 ***