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)

54 Branch
defect

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.
Component: Untriaged → Canvas: 2D
Product: Firefox → Core
It would be nice if to have a narrower regression range.
Actually, the clipping issue started in FF46
It looks like with D2D we get different results than Edge and than with Skia.
Flags: needinfo?(bas)
Whiteboard: [gfx-noted]
(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)
Can you link to it from here?
Flags: needinfo?(bas)
I think this is bug 1333090.
Flags: needinfo?(bas)

+1

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: