Bug 82510

Summary: [Chromium] SVG content in scaled SVG <image> tag is sampled from unscaled image
Product: WebKit Reporter: Stephen Chenney <schenney>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: cricri.bug, krit, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Primary repro file, requires the other attachment
none
<image> content none

Stephen Chenney
Reported 2012-03-28 12:58:29 PDT
Created attachment 134376 [details] Primary repro file, requires the other attachment Consider the two attached files, one of which includes the other in a <image> element. The included content is a 100x100 SVG doc. It is included in a 100x100 <image> tag that is transformed to be 5x larger. The result is an image of the included SVG at 100x100 up-sampled to 500x500. This looks blurry, as one would expect. We looked at the spec and it does not really say what to do here, but clearly the intent is for SVG content in an image tag to be rendered as accurately as possible, as this is the only avenue for including an entire SVG document in another SVG document. The spec clearly distinguishes between "raster" image data and SVG image data, leading us to believe that the spec does not think that SVG included using <image> shoudl actually be a raster image. Firefox renders the SVG content at 500x500 and does not look blurred.
Attachments
Primary repro file, requires the other attachment (388 bytes, image/svg+xml)
2012-03-28 12:58 PDT, Stephen Chenney
no flags
<image> content (404 bytes, image/svg+xml)
2012-03-28 12:59 PDT, Stephen Chenney
no flags
Stephen Chenney
Comment 1 2012-03-28 12:59:21 PDT
Created attachment 134377 [details] <image> content
Nikolas Zimmermann
Comment 2 2012-03-29 02:24:54 PDT
Are you sure the bug is still valid? I see no problems in trunk, looks just like in FF?
Stephen Chenney
Comment 3 2012-03-29 07:52:29 PDT
Should have linked the Chromium bug: http://code.google.com/p/chromium/issues/detail?id=119693 Wow. This is not at all expected. It seems to be a caching problem of some kind, probably Chromium only. Load the source svg (the second attachment) and it displays fine. Now load the primary file without restarted. The result is blurred. Restart the browser and load the primary file directly, and everything is fine. This is not primarily an SVG bug then.
Stephen Chenney
Comment 4 2013-04-09 17:05:51 PDT
Marked LayoutTest bugs, bugs with Chromium IDs, and some others as WontFix. Test failure bugs still are trackable via TestExpectations or disabled unit tests.
Note You need to log in before you can comment on or make changes to this bug.