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+ Currently in the trunk builds source-over and darker don't render correctly. According to the specification this should render the source on top of the destination image. In my testcase this renders just as copy does. As far is I can tell from the source 'over' is currently the default (which renders correctly) but should be 'source-over'. The option darker seems to do nothing at the moment Reproducible: Always Steps to Reproduce: 1. See testcase 2. 3. Actual Results: 'source-over' : Only one blue circle is drawn. 'darker' : Same as default Expected Results: 'source-over' : two circles one blue on top of red 'darker' : Two circles one blue and one red. The overlapping sections should be rendered darker
Created attachment 194815 [details] Testcase My testcase (Note all options for globalCompositeOperation are included)
Darker, lighter, and copy all seem broken right now.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2
(In reply to comment #3) > Darker, lighter, and copy all seem broken right now. > Lighter seems ok. http://mxr.mozilla.org/seamonkey/source/content/canvas/src/nsCanvasRenderingContext2D.cpp#2048 says > // XXX "darker" isn't really correct And darker was removed from the spec. http://www.whatwg.org/specs/web-apps/current-work/multipage/section-the-canvas.html#globalcompositeoperation http://www.w3.org/TR/2008/WD-html5-20080122/#compositing
Created attachment 307941 [details] Updated testcase Updated testcase taking into some canvas path spec changes.
Anyway |source-over| works fine. -> Remove |source-over| from the summary
OS: Windows XP → All
Hardware: PC → All
Summary: globalCompositeOperation options source-over and darker render incorrectly → globalCompositeOperation option darker renders incorrectly
Created attachment 327602 [details] Testcase fixed a script error
Attachment #194815 - Attachment is obsolete: true
Created attachment 327603 [details] Firefox 3 (windows xp) test results Results for Firefox 3: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
Attachment #194816 - Attachment is obsolete: true
Per comment 4, "darker" seems to have been well and truly removed from the (draft) HTML5 specification. I can see no reason why development work should be put into supporting something not on the spec. For the record, Opera does not implement this (or has dropped it); WebKit may still implement it; IE9 does not even support globalCompositeOperation. Closing as WONTFIX; feel free to re-open if you have a good reason.
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.