Bug 168519

Summary: Remove the SVG pathSegList interface
Product: WebKit Reporter: Fredrik Söderquist <fs>
Component: SVGAssignee: Karl Dubost <karlcow>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, annevk, ap, bfulgham, cdumez, heycam, karlcow, mmaxfield, rniwa, sabouhallawa, sam, webkit-bug-importer, zimmermann
Priority: P2 Keywords: BrowserCompat, InRadar, WPTImpact
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://www.chromestatus.com/features/5708851034718208
See Also: https://bugs.webkit.org/show_bug.cgi?id=260894
Bug Depends on: 234227    
Bug Blocks: 200143    

Description Fredrik Söderquist 2017-02-17 08:23:56 PST
This interface, and the associated SVGPathSeg* was removed in Chromium in version 48.
Comment 1 Sam Weinig 2017-02-21 11:47:23 PST
Why was it removed? Why should we remove it?
Comment 2 Said Abou-Hallawa 2017-02-21 13:44:33 PST
(In reply to comment #1)
> Why was it removed? Why should we remove it?

Because there is a new intercase: https://svgwg.org/specs/paths/#InterfaceSVGPathSegment.

Here is the Chrome official bug: https://bugs.chromium.org/p/chromium/issues/detail?id=539385.

But this bug might be more interesting: https://codereview.chromium.org/1416273002.
Comment 3 Ahmad Saleem 2022-07-14 11:11:51 PDT
I can find some references to it on Webkit Github mirror that "SVGPathSeg" is present:

https://github.com/WebKit/WebKit/search?l=C%2B%2B&q=pathSegList&type=code

I think only Safari is major browser supporting it as of right now:

https://caniuse.com/?search=PathSeg

but there is also highlight of the second bug from Chrome mentioned in Comment 02 being also merged into Webkit:

https://github.com/WebKit/WebKit/commit/8a435d350084afb918697abd44a3619bcb3bfae5

Is more worked required or caniuse needs to be updated? Thanks!
Comment 4 Radar WebKit Bug Importer 2022-07-15 16:32:24 PDT
<rdar://problem/97100338>
Comment 5 Ahmad Saleem 2023-08-27 03:15:48 PDT
*** Bug 234041 has been marked as a duplicate of this bug. ***
Comment 7 Said Abou-Hallawa 2023-08-30 16:37:08 PDT
I think bug 260894 has a better title and clearer description for what is left to be done for SVGPathElement's.
Comment 9 Karl Dubost 2024-02-15 23:04:18 PST
Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1631581
Comment 10 Karl Dubost 2024-02-15 23:09:53 PST
In fact in 2018 for firefox ttps://hg.mozilla.org/mozilla-central/diff/3e3cfa85d219e7d166f268474c1e38780e38be85/dom/webidl/SVGPathSeg.webidl
Comment 11 Karl Dubost 2024-02-15 23:11:51 PST
Pull request: https://github.com/WebKit/WebKit/pull/24592
Comment 12 Karl Dubost 2024-02-16 10:06:12 PST
Polyfill library created for the removal in Chrome.
https://github.com/progers/pathseg


The new draft has the Path data API, aka the d attribute, which is currently not implemented in WebKit.
https://svgwg.org/svg2-draft/paths.html#TheDProperty

I'm trying to determine if there are polyfill out there trying to map pathSeg to the d property and/or the opposite. 
This is Bug 234227