NEW 221542
globalCompositeOperation has not effect on drawing a video to a canvas
https://bugs.webkit.org/show_bug.cgi?id=221542
Summary globalCompositeOperation has not effect on drawing a video to a canvas
Nguyễn Hồng Phát
Reported 2021-02-08 02:57:05 PST
Created attachment 419570 [details] Expect Step 1: draw an image with transparent background on canvas Step 2: set globalCompositeOperation = "source-in" Step 3: draw video on canvas Expected: video is clipped inside image Actual: all video is draw on canvas, no clip Demo: https://nguyenhongphat0.github.io/demo-bug-reporting/safari-source-in-video-issue/with-video.html The above demo is working as expected on Chrome/Firefox. On Safari it's not working
Attachments
Expect (1.32 MB, image/png)
2021-02-08 02:57 PST, Nguyễn Hồng Phát
no flags
Actual (1.19 MB, image/png)
2021-02-08 02:59 PST, Nguyễn Hồng Phát
no flags
Patch (1.72 KB, patch)
2021-02-10 01:11 PST, Said Abou-Hallawa
no flags
Patch (22.97 KB, patch)
2021-02-11 01:18 PST, Said Abou-Hallawa
simon.fraser: review+
ews-feeder: commit-queue-
Nguyễn Hồng Phát
Comment 1 2021-02-08 02:59:08 PST
Smoley
Comment 2 2021-02-09 16:05:08 PST
Thanks for filing, I can reproduce this issue on Safari 13.1.3 as well as STP119.
Radar WebKit Bug Importer
Comment 3 2021-02-09 16:05:28 PST
Said Abou-Hallawa
Comment 4 2021-02-10 01:11:02 PST
Simon Fraser (smfr)
Comment 5 2021-02-10 09:11:40 PST
Needs a test.
Said Abou-Hallawa
Comment 6 2021-02-11 01:18:59 PST
Ahmad Saleem
Comment 7 2022-10-25 15:11:14 PDT
I am able to reproduce this issue on Safari 16.1 from the testcase in Comment 0 and also checked with BugID on Webkit GitHub and it seems this r+ patch didn't landed. Just wanted to update. Thanks!
Note You need to log in before you can comment on or make changes to this bug.