Bug 1832033: change `CheckPopoverValidity` to match spec more closely. r=emilio
[gecko.git] / dom / webidl / VTTRegion.webidl
blob359e5d9a8b74cc2074a6818808bc4725c0547e89
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * The origin of this IDL file is
7  * https://w3c.github.io/webvtt/#the-vttregion-interface
8  */
10 enum ScrollSetting {
11   "",
12   "up"
15 [Pref="media.webvtt.regions.enabled",
16  Exposed=Window]
17 interface VTTRegion {
18   [Throws]
19   constructor();
21            attribute DOMString id;
22            [SetterThrows]
23            attribute double width;
24            [SetterThrows]
25            attribute long lines;
26            [SetterThrows]
27            attribute double regionAnchorX;
28            [SetterThrows]
29            attribute double regionAnchorY;
30            [SetterThrows]
31            attribute double viewportAnchorX;
32            [SetterThrows]
33            attribute double viewportAnchorY;
35            attribute ScrollSetting scroll;