Closed Bug 307022 Opened 19 years ago Closed 16 years ago

globalCompositeOperation options source-in, source-out, destination-in, etc. render incorrectly

Categories

(Core :: Graphics: Canvas2D, defect)

1.9.0 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: kamiel, Unassigned)

Details

Attachments

(4 files, 3 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050903 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050903 Firefox/1.0+

As far is I can tell the branch build does not render the following options
correctly:
- source-in
- source-out
- source-over
- destination-in
- destination-atop
- darker
- copy

Reproducible: Always

Steps to Reproduce:
1. See the testcase
2.
3.

Actual Results:  
Look at the screenshot with my results

Expected Results:  
See the intended result screenshot
Version: Trunk → 1.8 Branch
Attached file Testcase (obsolete) —
My testcase
Attached image My rsults (obsolete) —
My results with the following branch build: Mozilla/5.0 (Windows; U; Windows NT
5.1; en-US; rv:1.8b4) Gecko/20050903 Firefox/1.0+
Attached image Intended result
I think this should be the intended result. (ignoring the anti-aliasing
offcourse)
I'm not seeing the same thing as you showed in your screenshot, but I am seeing
the anti-aliasing differences on Linux and Windows. (Screenshots were taken on
today's trunk builds.)
Adam,

This was tested on the branch build not the trunk. The trunk build performs much
better than the branch build but still isn't perfect. see bug 307021.
Just tested this on the 1.5 beta 1 build and I still get the same results.
1.5 is unsupported.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
Attached image Firefox 3 (windows xp) test results (obsolete) —
This is the results I get with the current Firefox 3 on windows xp: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
Attachment #194818 - Attachment is obsolete: true
Ted, This bug may be reported almost 3 years ago but it still exists in the current firefox 3: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0.

It also looks like this is mostly a Windows problem. In ubuntu only darker doesn't seem to work.
Status: RESOLVED → UNCONFIRMED
Resolution: WONTFIX → ---
Version: 1.8 Branch → 1.9.0 Branch
copy is bug 366283, and darker is bug 307021. I don't think this testcase is actually correct. The testcase here: http://developer.mozilla.org/samples/canvas-tutorial/6_1_canvas_composite.html shows everything but copy and darker looking correct for me on Windows XP.
I'm not a canvas expert, but I think this testcase is broken.
Your right the testcase is broken it's missing a beginpath statement which makes it behave strangly. The testcase I made for the tutorial is, as you point out, behaving correctly except for darker and copy.
Attached file Testcase
Removed a script error from the testcase.
Attachment #194817 - Attachment is obsolete: true
updated with results for the new testcase
Attachment #327591 - Attachment is obsolete: true
Can we then resolve this as INVALID or dupe to one of those other bugs I mentioned, since it looks like everything else is working?
Agreed
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: