globalCompositeOperation is broken when using drawImage()

NEW
Unassigned

Status

()

Core
Canvas: 2D
P3
normal
2 years ago
2 months ago

People

(Reporter: dreamless113, Unassigned)

Tracking

({testcase})

42 Branch
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [parity-ie][parity-chrome][parity-opera][parity-safari] [gfx-noted], URL)

(Reporter)

Description

2 years ago
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]

Comment 1

2 years ago
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]
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.