[Webkit-unassigned] [Bug 158527] New: Similar SVGs drawn to a WebGL canvas are rendered incorrectly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 8 08:37:04 PDT 2016


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

            Bug ID: 158527
           Summary: Similar SVGs drawn to a WebGL canvas are rendered
                    incorrectly
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGL
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gurmukhp at gmail.com
                CC: dino at apple.com

Created attachment 280806
  --> https://bugs.webkit.org/attachment.cgi?id=280806&action=review
Demo showing issue

I've come across a bug whereby drawing very similar (but different) SVGs onto the Canvas using WebGL results in the SVGs being drawn on top of each other. An example is attached to better help understand the bug.

When the same application is run without using WebGL, everything works fine.

I know this app uses Pixi JS, but I've tried this on ThreeJS with the same problem. This occurs on iOS and Mac Safari, but is not an issue on Chrome (Blink).

Steps to Reproduce
- Load index.html on Chrome and Safari
- Inspect the last image and see that it's different.
- Loading via data URL or files makes absolutely no difference.

If the last SVG is left empty (everything inside the SVG element is deleted), Chrome doesn't render it (which is correct) but Safari does (which isn't).
If the height, width or viewport of any SVG is changed, then it will be rendered correctly. Adding ID's or other params to the SVG string make absolutely no difference.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160608/bdacac20/attachment.html>


More information about the webkit-unassigned mailing list