tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

css-nav.idl (1284B)


      1 // 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 Module Level 1 (https://drafts.csswg.org/css-nav-1/)
      5 
      6 enum SpatialNavigationDirection {
      7    "up",
      8    "down",
      9    "left",
     10    "right",
     11 };
     12 
     13 partial interface Window {
     14    undefined navigate(SpatialNavigationDirection dir);
     15 };
     16 
     17 enum FocusableAreaSearchMode {
     18    "visible",
     19    "all"
     20 };
     21 
     22 dictionary FocusableAreasOption {
     23    FocusableAreaSearchMode mode;
     24 };
     25 
     26 dictionary SpatialNavigationSearchOptions {
     27    sequence<Node>? candidates;
     28    Node? container;
     29 };
     30 
     31 partial 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]
     38 interface NavigationEvent : UIEvent {
     39    constructor(DOMString type,
     40                optional NavigationEventInit eventInitDict = {});
     41    readonly attribute SpatialNavigationDirection dir;
     42    readonly attribute EventTarget? relatedTarget;
     43 };
     44 
     45 dictionary NavigationEventInit : UIEventInit {
     46    SpatialNavigationDirection dir;
     47    EventTarget? relatedTarget = null;
     48 };