RESOLVED WONTFIX 89456
[SKIA] Clip path and mask combinations leave artifacts
https://bugs.webkit.org/show_bug.cgi?id=89456
Summary [SKIA] Clip path and mask combinations leave artifacts
Branimir Lambov
Reported 2012-06-19 03:41:48 PDT
Created attachment 148306 [details] Testcase The attached file displays a few copies of an image masked by itself. On the left side it is also under a clip-path that is as big as the image. The clip-path should not have any effect on the displayed images. In Firefox, Opera, as well as Safari, the left side exactly matches the right. Chrome draws one-pixel wide lines around the object that change with zoom levels (the image is only fine if it is perfectly aligned on pixel boundaries).
Attachments
Testcase (6.18 KB, image/svg+xml)
2012-06-19 03:41 PDT, Branimir Lambov
no flags
Screenshot with artifacts on left side (13.20 KB, image/png)
2012-06-19 03:54 PDT, Branimir Lambov
no flags
Testcase with simple and complex clipping (6.34 KB, image/svg+xml)
2012-06-19 05:19 PDT, Branimir Lambov
no flags
Branimir Lambov
Comment 1 2012-06-19 03:54:06 PDT
Created attachment 148307 [details] Screenshot with artifacts on left side
Branimir Lambov
Comment 2 2012-06-19 05:14:47 PDT
Note: If the clipping path is complex (i.e. containing more than one path and thus skipping pathOnlyClipping (http://code.google.com/p/chromium/source/search?q=RenderSVGResourceClipper%3A%3ApathOnlyClipping&origq=RenderSVGResourceClipper%3A%3ApathOnlyClipping&btnG=Search+Trunk)), the images are drawn properly.
Branimir Lambov
Comment 3 2012-06-19 05:19:49 PDT
Created attachment 148316 [details] Testcase with simple and complex clipping This uses pathOnlyClipping on the left side and forces image buffer clipping on the right by including an additional empty <rect /> in the clip path. The right side is OK, the left one has artifacts.
Note You need to log in before you can comment on or make changes to this bug.