Intent to Deprecate and Remove: Remove CanvasRenderingContext2D method scrollPathIntoView

386 views
Skip to first unread message

Chromestatus

unread,
Aug 8, 2024, 9:30:47 AMAug 8
to blin...@chromium.org, fs...@chromium.org, sche...@chromium.org

Contact emails

sche...@chromium.org

Explainer

None

Specification

https://github.com/whatwg/html/issues/8216

Summary

The scrollPathIntoView method on CanvasRenderingContext2D was implemented in Chrome behind a flag, but never shipped and never implemented by any other browsers in the nearly 10 years of its existence. The WHATWG has agreed to remove the method due to lack of interest. It has zero usage according to the stats, and MDN says it is not implemented anywhere. We are removing the method and associated flag and tests.



Blink component

Blink>Canvas

Motivation

The scrollPathIntoView method has been in the spec since 2011 and no browsers have shipped it yet, though there is an experimental implementation hidden behind a runtime flag in Chromium. There seems to be no implementer or web developer interest for this feature: No usage reported in chromestatus No related outstanding issues in the chromium issue tracker. No activity on the WebKit issue until it was just closed: https://bugs.webkit.org/show_bug.cgi?id=149987 Firefox bug has been open for 10 years with no activity: https://bugzilla.mozilla.org/show_bug.cgi?id=1120401 It was agreed by WHATWG to remove the method after a suggestion from Justin Novosad, and there is even a WPT test ensuring it is removed (https://wpt.fyi/results/html/canvas/historical.window.html, "CanvasRenderingContext2D.scrollPathIntoView method is removed"). It has now been removed from the spec and from MDN.



Initial public proposal

None

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

None



Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



Is this feature fully tested by web-platform-tests?

No

Flag name on chrome://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5891170383953920?gate=6550238987550720

This intent message was generated by Chrome Platform Status.

Domenic Denicola

unread,
Aug 9, 2024, 1:20:56 AMAug 9
to Chromestatus, blin...@chromium.org, fs...@chromium.org, sche...@chromium.org
If this method was only ever enabled behind a flag, I don't think this removal requires any API owner approval. Happy removing!

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/000000000000fb93b6061f2c07e6%40google.com.

Mike Taylor

unread,
Aug 9, 2024, 12:04:27 PMAug 9
to Domenic Denicola, Chromestatus, blin...@chromium.org, fs...@chromium.org, sche...@chromium.org

Stephen Chenney

unread,
Aug 9, 2024, 12:06:30 PMAug 9
to Mike Taylor, Domenic Denicola, Chromestatus, blin...@chromium.org, fs...@chromium.org
Good to know. Thanks folks.
Reply all
Reply to author
Forward
0 new messages