Open
Bug 1364140
Opened 8 years ago
Updated 2 years ago
canvas drawImage ignores clipping for various globalCompositeOperation values (regression)
Categories
(Core :: Graphics: Canvas2D, defect, P3)
Tracking
()
UNCONFIRMED
People
(Reporter: szdy12, Unassigned)
Details
(Keywords: regression, regressionwindow-wanted, Whiteboard: [gfx-noted])
Attachments
(5 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170508140042
Steps to reproduce:
Open the attached html file. It will display images of canvas drawImage operations using different globalCompositeOperation settings.
For each globalCompositeOperation, the top image is the result of the operation without clipping applied on an alpha-enabled canvas.
The image in the middle is the result of the operation using a smaller clipping rectangle.
The bottom image is the result of the operation using clipping, however, applied on an alpha-disabled canvas.
Actual results:
Clipping is ignored in the following cases:
- "difference" regardless of alpha setting
- "source-atop", "destination-out" and "lighter" used on an alpha-disabled canvas
Moreover, transparent areas will be painted black instead of dark blue on alpha-disabled canvases.
Expected results:
Clipping should work in all cases.
Transparent areas should be painted dark-blue on alpha-disabled canvases.
This is a regression:
- FF28 renders all cases correctly.
- FF37 messes up other cases totally, however, clipping is working, when an image is rendered.
- FF44 renders clipped images correctly, however, transparent areas are painted black on alpha-disabled canvases.
- FF52 (and FF54) renders several cases without clipping.
Reporter | ||
Comment 1•8 years ago
|
||
Reporter | ||
Comment 2•8 years ago
|
||
Reporter | ||
Comment 3•8 years ago
|
||
Reporter | ||
Comment 4•8 years ago
|
||
Regression range for the clipping issue:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=494289c72ba3997183e7b5beaca3e0447ecaf96d&tochange=538d248fa252a4100082fd9bc3fdc08d322cda22
Comment 6•8 years ago
|
||
It would be nice if to have a narrower regression range.
Reporter | ||
Comment 7•8 years ago
|
||
Actually, the clipping issue started in FF46
Updated•7 years ago
|
Keywords: regression,
regressionwindow-wanted
Comment 8•7 years ago
|
||
It looks like with D2D we get different results than Edge and than with Skia.
Flags: needinfo?(bas)
Whiteboard: [gfx-noted]
Comment 9•7 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #8)
> It looks like with D2D we get different results than Edge and than with Skia.
I believe the regression was from the bug where we fixed some drawing issue with complex blend modes. It's noted in one of the other filings of this bug.
Flags: needinfo?(bas)
Updated•7 years ago
|
Priority: -- → P3
Comment 12•3 years ago
|
||
+1
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•