globalCompositeOperation option darker renders incorrectly

RESOLVED WONTFIX

Status

()

P2
normal
RESOLVED WONTFIX
13 years ago
8 years ago

People

(Reporter: kamiel, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments, 2 obsolete attachments)

(Reporter)

Description

13 years ago
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

13 years ago
Created attachment 194815 [details]
Testcase

My testcase (Note all options for globalCompositeOperation are included)
(Reporter)

Comment 2

13 years ago
Created attachment 194816 [details]
My result

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

Comment 5

11 years ago
Created attachment 307941 [details]
Updated testcase

Updated testcase taking into some canvas path spec changes.

Comment 6

11 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

10 years ago
Created attachment 327602 [details]
Testcase

fixed a script error
Attachment #194815 - Attachment is obsolete: true
(Reporter)

Comment 8

10 years ago
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

Comment 9

8 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
Last Resolved: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.