Bug 124349 - Relative SVG drawn on canvas gets distorted
Summary: Relative SVG drawn on canvas gets distorted
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-11-14 06:26 PST by Yoav Weiss
Modified: 2014-10-15 09:00 PDT (History)
6 users (show)

See Also:


Attachments
Layout tests reproducing this issue (1.31 KB, application/gzip)
2013-11-14 06:26 PST, Yoav Weiss
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yoav Weiss 2013-11-14 06:26:13 PST
fast/hidpi/image-srcset-relative-svg-canvas-2x.html shows a case where a relative SVG image (with specified dimensions) loaded using srcset's 2x descriptor gets distorted when drawn on a canvas. It shows a full pink background instead of a pink background on just half of the canvas.
 
The layout tests are available at https://bugs.webkit.org/show_bug.cgi?id=123832 or attached here.
Comment 1 Yoav Weiss 2013-11-14 06:26:55 PST
Created attachment 216927 [details]
Layout tests reproducing this issue
Comment 2 Yoav Weiss 2013-11-14 06:32:08 PST
Actually, the same issue applies (flakingly) to 1x relative SVG images as well.
Comment 3 Radar WebKit Bug Importer 2014-02-03 14:44:08 PST
<rdar://problem/15973231>
Comment 4 Alexey Proskuryakov 2014-10-14 16:18:22 PDT
Simon tried to remove fast/hidpi/image-srcset-relative-svg-canvas.html from TestExpectations in <http://trac.webkit.org/changeset/174495>, but the test still fails.

It fails most of the time on EWS, and fails rarely on regular bots.

Re-added this test to expectation in r174707.