testing/web-platform/tests/interfaces/fullscreen.idl
author Stephen McGruer <smcgruer@chromium.org>
Tue, 28 Apr 2020 11:45:38 +0000
changeset 527667 c494ab0b6fab0dd339b7ca6fc13c36ad56e19568
parent 527386 8b5cece2146ada48cd701b167f56852d78a0cf50
child 546075 fbf44db9c142c42a5b31f0b7f7f384bc4fdfa49a
permissions -rw-r--r--
Bug 1632580 [wpt PR 23207] - Update interfaces/fullscreen.idl, a=testonly Automatic update from web-platform-tests Update interfaces/fullscreen.idl (#23207) Includes necessary idlharness.js updates for https://github.com/web-platform-tests/wpt/issues/23148 Closes https://github.com/web-platform-tests/wpt/pull/23128 -- wpt-commits: 7b4b5b84caae9e748eb13fda010d48a6a874e5a4 wpt-pr: 23207

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Fullscreen API Standard (https://fullscreen.spec.whatwg.org/)

enum FullscreenNavigationUI {
  "auto",
  "show",
  "hide"
};

dictionary FullscreenOptions {
  FullscreenNavigationUI navigationUI = "auto";
};

partial interface Element {
  Promise<void> requestFullscreen(optional FullscreenOptions options = {});

  attribute EventHandler onfullscreenchange;
  attribute EventHandler onfullscreenerror;
};

partial interface Document {
  [LegacyLenientSetter] readonly attribute boolean fullscreenEnabled;
  [LegacyLenientSetter, Unscopable] readonly attribute boolean fullscreen; // historical

  Promise<void> exitFullscreen();

  attribute EventHandler onfullscreenchange;
  attribute EventHandler onfullscreenerror;
};

partial interface mixin DocumentOrShadowRoot {
  [LegacyLenientSetter] readonly attribute Element? fullscreenElement;
};