blob: 03f039e4cb54f5f714bc252e7bfbd609ec769ed2 [file] [log] [blame]
Victor Porof6e096922022-06-10 13:01:05 +00001// GENERATED CONTENT - DO NOT EDIT
2// Content was automatically extracted by Reffy into webref
3// (https://github.com/w3c/webref)
4// Source: CSS Spatial Navigation Level 1 (https://drafts.csswg.org/css-nav-1/)
5
6enum SpatialNavigationDirection {
7 "up",
8 "down",
9 "left",
10 "right",
11};
12
13partial interface Window {
14 undefined navigate(SpatialNavigationDirection dir);
15};
16
17enum FocusableAreaSearchMode {
18 "visible",
19 "all"
20};
21
22dictionary FocusableAreasOption {
23 FocusableAreaSearchMode mode;
24};
25
26dictionary SpatialNavigationSearchOptions {
27 sequence<Node>? candidates;
28 Node? container;
29};
30
31partial interface Element {
32 Node getSpatialNavigationContainer();
33 sequence<Node> focusableAreas(optional FocusableAreasOption option = {});
34 Node? spatialNavigationSearch(SpatialNavigationDirection dir, optional SpatialNavigationSearchOptions options = {});
35};
36
37[Exposed=Window]
38interface NavigationEvent : UIEvent {
39 constructor(DOMString type,
40 optional NavigationEventInit eventInitDict = {});
41 readonly attribute SpatialNavigationDirection dir;
42 readonly attribute EventTarget? relatedTarget;
43};
44
45dictionary NavigationEventInit : UIEventInit {
46 SpatialNavigationDirection dir;
47 EventTarget? relatedTarget = null;
48};