VTTRegion.webidl (969B)
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 */ 9 10 enum ScrollSetting { 11 "", 12 "up" 13 }; 14 15 [Exposed=Window] 16 interface VTTRegion { 17 [Throws] 18 constructor(); 19 20 attribute DOMString id; 21 [SetterThrows] 22 attribute double width; 23 [SetterThrows] 24 attribute long lines; 25 [SetterThrows] 26 attribute double regionAnchorX; 27 [SetterThrows] 28 attribute double regionAnchorY; 29 [SetterThrows] 30 attribute double viewportAnchorX; 31 [SetterThrows] 32 attribute double viewportAnchorY; 33 34 attribute ScrollSetting scroll; 35 };