Shadow clipped for fillRect
Categories
(Core :: Graphics: Canvas2D, defect)
Tracking
()
People
(Reporter: krit, Unassigned)
Details
| Reporter | ||
Updated•12 years ago
|
Comment 1•4 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:lsalzman, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 2•4 years ago
|
||
I believe the behavior of this test-case is correct. Destination-atop is effectively: dst * src.a + src * (1 - dst.a). Or stated in plain language from Mozilla dev docs: "The existing canvas is only kept where it overlaps the new shape. The new shape is drawn behind the canvas content."
The test-case clears the canvas, then renders the shadow with destination-atop, then the rectangle with destination-atop. But since the final rectangle will essentially cut off everything outside of it due to the "not bound by mask" behavior of destination-atop, the shadow should actually be confined to the rectangle.
Updated•4 years ago
|
Description
•