[Webkit-unassigned] [Bug 244199] New: CanvasRenderingContext2D transformation matrix not respected on <video> element during drawImage()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 22 05:42:22 PDT 2022


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

            Bug ID: 244199
           Summary: CanvasRenderingContext2D transformation matrix not
                    respected on <video> element during drawImage()
           Product: WebKit
           Version: Safari 15
          Hardware: Mac (Apple Silicon)
                OS: macOS 12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: matt.rossman at quarkworks.co
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

See these two examples:

* Mirroring a <canvas> https://jsfiddle.net/mattrossman/kofev2hn/1/
* Mirroring a <video> https://jsfiddle.net/mattrossman/z5scnhg9/4/

Both demos apply horizontal mirroring to the destination canvas via `.setTransform(-1, 0, 0, 1, 0, 0)` and draw to the canvas with `.drawImage()`.

The first demo correctly mirrors the input image (left) in major browsers (Safari 15.6, Chrome 104.0.5112.101, Firefox 103.0.2).

The second demo mirrors the input video in Chrome and Firefox, whereas Safari displays the un-mirrored video.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220822/fb1bfba8/attachment-0001.htm>


More information about the webkit-unassigned mailing list