Implement new path data API
Categories
(Core :: SVG, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox136 | --- | fixed |
People
(Reporter: longsonr, Assigned: longsonr)
References
Details
(Keywords: dev-doc-complete)
Attachments
(2 files, 3 obsolete files)
The specification is here: https://svgwg.org/specs/paths/#DOMInterfaces
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
| Comment hidden (obsolete) |
| Comment hidden (obsolete) |
| Assignee | ||
Comment 5•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 6•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 7•1 year ago
|
||
Comment 8•1 year ago
|
||
Once this lands, it should be documented at https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features. Reading the attached patch, the related pref is dom.svg.pathSegment.enabled and enabled by default in Nightly builds.
Sebastian
| Assignee | ||
Comment 9•1 year ago
|
||
| Assignee | ||
Comment 10•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 11•1 year ago
|
||
Comment 12•1 year ago
|
||
Comment 14•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Comment 15•1 year ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]:
[Affects Firefox for Android]: yes
[Suggested wording]: Firefox has an implementation of the new SVG 2 path API. Currently enabled on nightly only but there will be a pref dom.svg.pathSegment.enabled that you can enable from Firefox 136.
[Links (documentation, blog post, etc)]:
https://svgwg.org/specs/paths/#DOMInterfaces
https://github.com/jarek-foksa/path-data-polyfill (polyfill for browsers that don't have a native implementation)
https://stackoverflow.com/questions/34919405
Comment 17•1 year ago
|
||
Added to the Fx136 nightly release notes, please allow 30 minutes for the site to update.
Comment 18•10 months ago
|
||
I am probably missing something here, but when I test the example above I am just getting the error: SVGPathSegment is not defined.
I have tested this in:
- Firefox Nightly 137.0a1
- Firefox Beta 136.0 with the flag
dom.svg.pathSegment.enabledset to true
Comment 19•10 months ago
|
||
removing nightly+ relnote flag since this will be in the 137 release notes via bug 1945312
| Assignee | ||
Comment 20•10 months ago
|
||
| Assignee | ||
Comment 21•10 months ago
|
||
(In reply to Dave Letorey from comment #18)
I am probably missing something here, but when I test the example above I am just getting the error:
SVGPathSegment is not defined.
I have tested this in:
- Firefox Nightly 137.0a1
- Firefox Beta 136.0 with the flag
dom.svg.pathSegment.enabledset to true
I've replaced the testcase. The previous one was what I started with for development but in the end I discovered it isn't actually valid as the SVGPathSegment type doesn't have a javascript interface according to https://svgwg.org/specs/paths/#DOMInterfaces
Updated•9 months ago
|
Description
•