Closed
Bug 307021
Opened 20 years ago
Closed 15 years ago
globalCompositeOperation option darker renders incorrectly
Categories
(Core :: Graphics: Canvas2D, defect, P2)
Core
Graphics: Canvas2D
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
Reporter | ||
Comment 1•20 years ago
|
||
My testcase (Note all options for globalCompositeOperation are included)
Reporter | ||
Comment 2•20 years ago
|
||
My results in the 1.6a firefox trunk build
Comment 3•17 years ago
|
||
Darker, lighter, and copy all seem broken right now.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2
Comment 4•17 years ago
|
||
(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
Comment 5•17 years ago
|
||
Updated testcase taking into some canvas path spec changes.
Comment 6•17 years ago
|
||
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
Reporter | ||
Comment 7•17 years ago
|
||
fixed a script error
Attachment #194815 -
Attachment is obsolete: true
Reporter | ||
Comment 8•17 years ago
|
||
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
Comment 9•15 years ago
|
||
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.
Description
•