Open
Bug 1551742
Opened 5 years ago
Updated 2 years ago
Use CSSPoint or add a CSSPath to make sure the gfx::Path built from SVG path uses css pixels on offset-path
Categories
(Core :: Layout, enhancement, P4)
Core
Layout
Tracking
()
NEW
People
(Reporter: boris, Unassigned)
References
Details
Both offset-path:path()
and clip-path:path()
use a svg path to build the a gfx::Path
. The unit of the gfx::Path
built for offset-path is CSS pixel [1], but the unit of the gfx::Path
built for clip-path is device pixel [2]. It's not easy to realize this and may be error-prone. So it'd be better to add a CSSPath, or use CSSPoint, or any other ways to make them clearer.
[1] https://searchfox.org/mozilla-central/rev/116bd975c30746ddefc3d20e6947d1871469354f/layout/base/nsLayoutUtils.cpp#9966-9968
[2] https://searchfox.org/mozilla-central/rev/116bd975c30746ddefc3d20e6947d1871469354f/layout/svg/nsCSSClipPathInstance.cpp#230-233
Reporter | ||
Updated•5 years ago
|
Summary: Use CSSPoint or add a CSSPath to make sure the gfx::Path built from SVG path uses css pixels → Use CSSPoint or add a CSSPath to make sure the gfx::Path built from SVG path uses css pixels on offset-path
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•