Bug 56353 - [Qt] Rendering SVG inside a div with a border seems to fail
Summary: [Qt] Rendering SVG inside a div with a border seems to fail
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 420+
Hardware: PC Windows 7
: P3 Normal
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2011-03-14 18:44 PDT by Srinath Avadhanula
Modified: 2011-03-15 04:24 PDT (History)
2 users (show)

See Also:


Attachments
HTML page which shows the bug (619 bytes, text/html)
2011-03-14 18:45 PDT, Srinath Avadhanula
no flags Details
SVG file to go with try1.html (1.04 KB, image/svg+xml)
2011-03-14 18:45 PDT, Srinath Avadhanula
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Srinath Avadhanula 2011-03-14 18:44:45 PDT
When I open the attached try1.html file inside a QWebView widget, I do not see anything at all. Strangely enough if I remove the "<style>...</style>" tags from the HTML page, I do get the correct rendering. In fact, the rendering is OK as long as there is no "border-*" attributes in the style section. 

Reproduction steps:

1. Save the snippets below as try1.html and try1.svg in some directory
2. Open designer and drag/drop a new QWebView to it.
3. Make the Url point to file://where/ever/you/downloaded/try1.html
4. Preview

Now notice that there is nothing displayed in the window.

Now comment out all the border-* attributes. You will now see a set of radial gray lines. This is expected.

I of-course do not see this problem in a recent version of chrome.

I used the latest PyQt (which uses Qt 4.7.1) to see this problem. (I am not sure if the version 420+ is correct. I took a guess)
Comment 1 Srinath Avadhanula 2011-03-14 18:45:25 PDT
Created attachment 85755 [details]
HTML page which shows the bug
Comment 2 Srinath Avadhanula 2011-03-14 18:45:58 PDT
Created attachment 85756 [details]
SVG file to go with try1.html
Comment 3 Benjamin Poulain 2011-03-15 04:24:54 PDT
The test case works for me on trunk. This is probably an old bug that had already been fixed upstream.