diff --git a/third_party/blink/renderer/core/dom/document.idl b/third_party/blink/renderer/core/dom/document.idl index a2913255fd8076..16cb20644b132a 100644 --- a/third_party/blink/renderer/core/dom/document.idl +++ b/third_party/blink/renderer/core/dom/document.idl @@ -219,6 +219,10 @@ typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement; attribute EventHandler onresume; attribute EventHandler onsearch; attribute EventHandler onvisibilitychange; + + // Proposed setter for focus navigation starting point + // https://github.com/whatwg/html/issues/5326 + [RuntimeEnabled=SetSequentialFocusStartingPoint, ImplementedAs=SetSequentialFocusNavigationStartingPoint] void setSequentialFocusStartingPoint(Element element); }; Document includes GlobalEventHandlers; diff --git a/third_party/blink/renderer/platform/runtime_enabled_features.json5 b/third_party/blink/renderer/platform/runtime_enabled_features.json5 index e83680c0ef2c3b..612086d6a84455 100644 --- a/third_party/blink/renderer/platform/runtime_enabled_features.json5 +++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5 @@ -3361,6 +3361,10 @@ origin_trial_feature_name: "ServiceWorkerStaticRouter", public: true, }, + { + name: "SetSequentialFocusStartingPoint", + status: "experimental", + }, { name: "SharedArrayBuffer", base_feature: "none", diff --git a/third_party/blink/web_tests/external/wpt/html/interaction/focus/setSequentialFocusStartingPoint.tentative.html b/third_party/blink/web_tests/external/wpt/html/interaction/focus/setSequentialFocusStartingPoint.tentative.html new file mode 100644 index 00000000000000..a7c7506b13b636 --- /dev/null +++ b/third_party/blink/web_tests/external/wpt/html/interaction/focus/setSequentialFocusStartingPoint.tentative.html @@ -0,0 +1,27 @@ + + + + + + + + + +
d1
+ + + diff --git a/third_party/blink/web_tests/webexposed/global-interface-listing-expected.txt b/third_party/blink/web_tests/webexposed/global-interface-listing-expected.txt index 115020a8c3574a..1e3c60d6f0a6d1 100644 --- a/third_party/blink/web_tests/webexposed/global-interface-listing-expected.txt +++ b/third_party/blink/web_tests/webexposed/global-interface-listing-expected.txt @@ -2040,6 +2040,7 @@ interface Document : Node method replaceChildren method requestStorageAccess method requestStorageAccessFor + method setSequentialFocusStartingPoint method startViewTransition method webkitCancelFullScreen method webkitExitFullscreen