Canvas SVG issue when using the Context2D "globalCompositeOperation" set to "destination-in"
Categories
(Core :: Graphics: Canvas2D, defect, P3)
Tracking
()
People
(Reporter: register, Assigned: adroitwhiz)
References
(Regression)
Details
(Keywords: parity-chrome, parity-edge, regression)
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
Firefox for Android
Steps to reproduce:
Define an HTML5 <canvas>, draw a plain image (i.e. with no transparent pixels) and then draw a SVG image containing some transparent pixels and some opaque pixels (i.e. a mask), with the canvas Context2D ""globalCompositeOperation" set to "destination-in", so as to apply a mask.
Actual results:
The SVG image is drawn as if the Context2D "globalCompositeOperation" were set to its default "source-over" value, and the SVG image simply overwrites the previously drawn image.
This occurs on desktop but also on the Android mobile application "Mozilla Firefox" v68.0.
Expected results:
The SVG image should have behaved like a mask.
I have attached a stand-alone HTML5 file which shows the bug and a work-around by using an intermediate canvas.
Comment 1•5 years ago
|
||
I can reproduce on Nightly70.0a1 windows10.
Edge44.18362.1.0 and Chrome 75.0.3770.142 works as expected
Comment 2•5 years ago
|
||
Firefox 28 works, Firefox 29 broken.
Regression window:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=04f5a7e8f14c&tochange=c305df97cbc6
Regressed by: Bug 603488
Comment 3•5 years ago
|
||
The priority flag is not set for this bug.
:lsalzman, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Updated•5 years ago
|
Pushed by btara@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1fe5ae0c8768 set composite op in DrawDirectlyToCanvas r=jrmuizel
Comment 7•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•3 years ago
|
Description
•