Closed Bug 555399 Opened 14 years ago Closed 13 years ago

globalCompositeOperation = "source-in" does not handle drawImage correctly

Categories

(Core :: Graphics: Canvas2D, defect)

1.9.1 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: philip, Unassigned)

References

()

Details

(Keywords: regression, testcase)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2

The test case sets the canvas to 50% transparent black, and then tries to drawImage on top of the canvas with globalCOmpositeOperation = "source-in". However, nothing is displayed. Chrome gets it right (i.e. you get a 50% transparent image).

Reproducible: Always

Steps to Reproduce:
1. GO to the url http://pskreporter.info/grid/testcanvas.html
2. Observe that left hand area on the screen is blank. 
3. It should contain a 50% transparent version of the image.
Actual Results:  
Observe that left hand area on the screen is blank. 


Expected Results:  
It should contain a 50% transparent version of the image.
Component: General → Canvas: 2D
Product: Firefox → Core
QA Contact: general → canvas.2d
this is a regression of 1.9.1 against 1.9.0, i.e.

works:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.19) Gecko/2010031422 Firefox/3.0.19 ID:2010031422

fails:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 ID:20100315083431
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression, testcase
OS: Windows 7 → All
Hardware: x86 → All
Version: unspecified → 1.9.1 Branch
Works in 4.0.1 for me
This works now.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.