Closed Bug 307021 Opened 20 years ago Closed 15 years ago

globalCompositeOperation option darker renders incorrectly

Categories

(Core :: Graphics: Canvas2D, defect, P2)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: kamiel, Unassigned)

Details

Attachments

(3 files, 2 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+ 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
Attached file Testcase (obsolete) —
My testcase (Note all options for globalCompositeOperation are included)
Attached image My result (obsolete) —
My results in the 1.6a firefox trunk build
Darker, lighter, and copy all seem broken right now.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2
Attached file 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
Attached file Testcase
fixed a script error
Attachment #194815 - Attachment is obsolete: true
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
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: