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
49 lines
1.3 KiB
Plaintext
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;
|
|
};
|