error in compositing with globalCompositeOperation copy using drawimage and fillrect

RESOLVED INVALID

Status

()

Core
Canvas: 2D
RESOLVED INVALID
7 years ago
7 years ago

People

(Reporter: Martin Braun, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(4 attachments, 1 obsolete attachment)

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (Windows NT 6.1; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: http://download.mozilla.org/?product=firefox-4.0rc2&os=win&lang=de

Compositing with globalCompositeOperation="copy" seems to be flawed in FF4.0RC2.

Please see the attached screenshots and code for details.

The behaviour is correct in FF3.6 and Chrome 11. 
InternetExplorer 9.0 and Opera 11 behave the same as FF4.0.

Note: The shown case might be a corner case not explicitly formulated in the HTML5 Specification thus it might be controversial if this is a bug. Also so far i have not found any official test cases checking for this case.
I believe however the behaviour in FF3.6 and Chrome 11 is correct.

Reproducible: Always

Actual Results:  
see attachments
(Reporter)

Comment 1

7 years ago
Created attachment 520757 [details]
test case - jquery required
(Reporter)

Comment 2

7 years ago
Created attachment 520759 [details]
chrome 11 screenshot
(Reporter)

Comment 3

7 years ago
Created attachment 520760 [details]
ff4 rc2 screenshot
(Reporter)

Comment 4

7 years ago
Created attachment 520761 [details]
ff 3.6 screenshot
(Reporter)

Comment 5

7 years ago
Created attachment 520880 [details]
test case
Attachment #520757 - Attachment is obsolete: true
For that testcase, the behavior change range is: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=3202d6d22192&tochange=abb82f981e02

So presumably this is a result of bug 366283.

If I read that bug correctly, this is a purposeful change to match what the canvas spec says.
Blocks: 366283
Yes, FF4, IE9 and Opera 11 are following the spec, and Chrome and FF3.6 are not.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.