Files
tubestation/testing/web-platform/tests/interfaces/webvtt.idl
Luke Bjerring 14bb561891 Bug 1452643 [wpt PR 9855] - Update the webvtt IDL file, a=testonly
Automatic update from web-platform-testsUpdate the webvtt IDL file (#9855)

* Add webvtt idl file
* Update webvtt/api/interfaces.html to use IDL

wpt-commits: 5edf4f2d1f9d1a2bbdddfc7b8e0b8171e4b7555e
wpt-pr: 9855
wpt-commits: 5edf4f2d1f9d1a2bbdddfc7b8e0b8171e4b7555e
wpt-pr: 9855
2018-04-15 08:34:36 +01:00

40 lines
1.3 KiB
Plaintext

// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the WebVTT spec.
// See https://w3c.github.io/webvtt/
enum AutoKeyword { "auto" };
typedef (double or AutoKeyword) LineAndPositionSetting;
enum DirectionSetting { "" /* horizontal */, "rl", "lr" };
enum LineAlignSetting { "start", "center", "end" };
enum PositionAlignSetting { "line-left", "center", "line-right", "auto" };
enum AlignSetting { "start", "center", "end", "left", "right" };
[Exposed=Window,
Constructor(double startTime, double endTime, DOMString text)]
interface VTTCue : TextTrackCue {
attribute VTTRegion? region;
attribute DirectionSetting vertical;
attribute boolean snapToLines;
attribute LineAndPositionSetting line;
attribute LineAlignSetting lineAlign;
attribute LineAndPositionSetting position;
attribute PositionAlignSetting positionAlign;
attribute double size;
attribute AlignSetting align;
attribute DOMString text;
DocumentFragment getCueAsHTML();
};
enum ScrollSetting { "" /* none */, "up" };
[Exposed=Window,
Constructor]
interface VTTRegion {
attribute DOMString id;
attribute double width;
attribute unsigned long lines;
attribute double regionAnchorX;
attribute double regionAnchorY;
attribute double viewportAnchorX;
attribute double viewportAnchorY;
attribute ScrollSetting scroll;
};