Files
sousa-gecko/testing/web-platform/tests/interfaces/css-nav.idl
T
github-actions[bot] 94f89476bd Bug 2048996 [wpt PR 60753] - Sync interfaces/ with @webref/idl 3.81.1, a=testonly
Automatic update from web-platform-tests
Sync interfaces/ with @webref/idl 3.81.1 (#60753)

Co-authored-by: wpt-pr-bot <wpt-pr-bot@users.noreply.github.com>
--

wpt-commits: 8c3a65eb65d581f58ab5af381ca94182ed8399b6
wpt-pr: 60753
2026-06-25 17:01:30 +00:00

49 lines
1.3 KiB
Plaintext

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: CSS Spatial Navigation Module Level 1 (https://drafts.csswg.org/css-spatial-nav-1/)
enum SpatialNavigationDirection {
"up",
"down",
"left",
"right",
};
partial interface Window {
undefined navigate(SpatialNavigationDirection dir);
};
enum FocusableAreaSearchMode {
"visible",
"all"
};
dictionary FocusableAreasOption {
FocusableAreaSearchMode mode;
};
dictionary SpatialNavigationSearchOptions {
sequence<Node>? candidates;
Node? container;
};
partial interface Element {
Node getSpatialNavigationContainer();
sequence<Node> focusableAreas(optional FocusableAreasOption option = {});
Node? spatialNavigationSearch(SpatialNavigationDirection dir, optional SpatialNavigationSearchOptions options = {});
};
[Exposed=Window]
interface NavigationEvent : UIEvent {
constructor(DOMString type,
optional NavigationEventInit eventInitDict = {});
readonly attribute SpatialNavigationDirection dir;
readonly attribute EventTarget? relatedTarget;
};
dictionary NavigationEventInit : UIEventInit {
SpatialNavigationDirection dir;
EventTarget? relatedTarget = null;
};