[Webkit-unassigned] [Bug 35667] New: [Qt] Raster images referenced in SVG elements fail to display when u sing setHtml and baseUrl

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 3 03:55:42 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=35667

           Summary: [Qt] Raster images referenced in SVG elements fail to
                    display when u sing setHtml and baseUrl
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: Mac OS X 10.5
            Status: NEW
          Keywords: Qt
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: vestbo at webkit.org


This bug report originated from issue QTBUG-4925
http://bugreports.qt.nokia.com/browse/QTBUG-4925

--- Description ---

Steps to reproduce / test case:

<p>Raster images can be referenced in <svg> elements with the
<image> element. Wrapping such images in SVG is often used because SVG
can nicely resize that image to fit the screen size. </p>

<p>But when an HTML file (example attached) is loaded into a QWebView with the
setHtml() command, and a baseUrl for the base location of that image has been
specified, the raster image is not loaded. </p>

<p>The problem is that the SVG subsystem of WebKit is not using the specified
baseUrl. If this HTML page was served from the web, there is no problem. But
with setHtml and baseUrl, the image doesn't load. I'm pretty sure this is a
problem with <b>any</b> local resource referenced in an <svg> tag, image
or otherwise. </p>

<p>Below is an example of an HTML file with problems. You will have to use some
sort of image and place it in a <baseUrl>/images/Cover.jpg location, and
then pass that baseUrl to setHtml(). </p>

<p><?xml version="1.0" encoding="UTF-8"?> <br/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <br/>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ops="http://www.idpf.org/2007/ops"> <br/>
<head> <br/>
<title>Cover</title> <br/>
<style type="text/css"> <br/>
div { <br/>
text-align: center; <br/>
} <br/>
</style> <br/>
</head> <br/>
<body> </p>

<p><!-- An SVG-wrapped image --> <br/>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" <br/>
width="100%" height="100%" viewBox="0 0 600 800" preserveAspectRatio="xMidYMid
meet"> <br/>
<image width="600" height="800" xlink:href="images/Cover.jpg" /> <br/>
</svg> </p>

<p></body> <br/>
</html></p>

<p>More information:</p>

<p>This problem is also present in the 4.6 tech preview.</p>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list