Closed Bug 1228750 Opened 9 years ago Closed 4 years ago

globalCompositeOperation is broken when using drawImage()

Categories

(Core :: Graphics: Canvas2D, defect, P3)

42 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1567544

People

(Reporter: dreamless113, Unassigned)

References

()

Details

(5 keywords, Whiteboard: [gfx-noted])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36

Steps to reproduce:

Please see this test: http://www.evanburke.com/new.html

1. I drew an image to the canvas.
2. I set the globalCompositeOperation equal to 'destination-out'
3. I tried drawing subsequent images to the canvas that should have been displayed using 'destination-out' as the composite mode.


Actual results:

'destination-out' is completely ignored, as are other composite modes.

The SVG image is drawn to canvas ontop of the existing image as if the globalCompositeOperation was set to 'source-atop' (the default)


Expected results:

globalCompositeOperation should not be ignored and should "erase" part of the image if using 'destination-out'

Chrome Version 45.0.2454.93 [OK]
Safari 5.1.7 [OK]
Internet Explorer 11.0.9600 [OK]
Firefox 42 [BROKEN]
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0
20151128030230
Status: UNCONFIRMED → NEW
Component: Untriaged → Canvas: 2D
Ever confirmed: true
Keywords: testcase
Product: Firefox → Core
Whiteboard: [parity-ie][parity-chrome][parity-opera][parity-safari]
Version: 40 Branch → 42 Branch
Whiteboard: [parity-ie][parity-chrome][parity-opera][parity-safari] → [parity-ie][parity-chrome][parity-opera][parity-safari] [gfx-noted]
Mass bug change to replace various 'parity' whiteboard flags with the new canonical keywords. (See bug 1443764 comment 13.)
Whiteboard: [parity-ie][parity-chrome][parity-opera][parity-safari] [gfx-noted] → [gfx-noted]
Attached file demonstration.html

As the original reporter's test link is dead, I've attached an HTML file demonstrating the bug, which still exists in Fx 72.0a1 (build 20191111100226).

closing as duplicate of bug 1567544, that has better info.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: