https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 2762f9e510988a8a9936fe8049d0f9ea2ba87be2 authored by James Graham on 30 July 2018, 13:36:45 UTC
Add a directory handler that uses the MANIFEST.json for listings.
Tip revision: 2762f9e
picture-in-picture.idl
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the
// "Picture-in-Picture" spec.
// See: https://wicg.github.io/picture-in-picture/

partial interface HTMLVideoElement {
  [NewObject] Promise<PictureInPictureWindow> requestPictureInPicture();

  attribute EventHandler onenterpictureinpicture;
  attribute EventHandler onleavepictureinpicture;

  [CEReactions] attribute boolean disablePictureInPicture;
};

partial interface Document {
  readonly attribute boolean pictureInPictureEnabled;

  [NewObject] Promise<void> exitPictureInPicture();
};

partial interface DocumentOrShadowRoot {
  readonly attribute Element? pictureInPictureElement;
};

interface PictureInPictureWindow : EventTarget {
  readonly attribute long width;
  readonly attribute long height;

  attribute EventHandler onresize;
};
back to top