Open
Bug 1531942
Opened 7 years ago
Updated 3 years ago
Improve masking API
Categories
(Core :: Graphics, enhancement, P3)
Core
Graphics
Tracking
()
NEW
People
(Reporter: jrmuizel, Unassigned)
References
Details
Moz2D's masking API doesn't serve SVGs needs very well. We've cobbled together improvements to it over time, but it still isn't doing great.
Here's a list of the functionality that we need:
-
Non trivial clip-path handling:
- clip-paths turn into masks under two conditions:
- If there are multiple shapes they need to be unioned.
- If the clip path or any shapes in it are clipped they need to be intersected.
These could be implemented with skia pathops (Chrome seems to do the unioning this way) but for now we use masks.
- clip-paths turn into masks under two conditions:
-
Merging clip-path masks with svg masks
-
Converting masks from color to luminance
Ideally the user of the api doesn't have to worry about any transforms to device space like they currently do.
| Reporter | ||
Updated•7 years ago
|
Priority: -- → P3
| Reporter | ||
Comment 1•7 years ago
|
||
A first pass it this will happen in bug 1539702
Depends on: 1539702
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•