Update the DOM model to provide enums for VTTCue.vertical and VTTCue.align.
authorSilvia Pfeiffer
Mon, 08 Jul 2013 16:35:05 +1000
changeset 122 d3391c30de10
parent 121 002cb109d05c
child 123 728ae23c222c
Update the DOM model to provide enums for VTTCue.vertical and VTTCue.align.
Closes https://www.w3.org/Bugs/Public/show_bug.cgi?id=20996
webvtt/webvtt.html
--- a/webvtt/webvtt.html	Mon Jul 08 16:21:27 2013 +1000
+++ b/webvtt/webvtt.html	Mon Jul 08 16:35:05 2013 +1000
@@ -4904,15 +4904,17 @@
   <p>The following interface is used to expose WebVTT cues in the DOM API:</p>
 
   <pre class="idl_whatwg">enum <dfn>AutoKeyword</dfn> { "auto" };
+enum <dfn>DirectionSetting</dfn> { "" /* horizontal */, "rl", "lr" };
+enum <dfn>AlignSetting</dfn> { "start", "middle", "end", "left", "right" };
 [<a title="dom-VTTCue">Constructor</a>(double startTime, double endTime, DOMString text)]
 interface <dfn>VTTCue</dfn> : <a>TextTrackCue</a> {
            attribute DOMString <a title="dom-VTTCue-regionId">regionId</a>;
-           attribute DOMString <a title="dom-VTTCue-vertical">vertical</a>;
+           attribute <a>DirectionSetting</a> <a title="dom-VTTCue-vertical">vertical</a>;
            attribute boolean <a title="dom-VTTCue-snapToLines">snapToLines</a>;
            attribute (long or <a>AutoKeyword</a>) <a title="dom-VTTCue-line">line</a>;
            attribute long <a title="dom-VTTCue-position">position</a>;
            attribute long <a title="dom-VTTCue-size">size</a>;
-           attribute DOMString <a title="dom-VTTCue-align">align</a>;
+           attribute <a>AlignSetting</a> <a title="dom-VTTCue-align">align</a>;
            attribute DOMString <a title="dom-VTTCue-text">text</a>;
   DocumentFragment <a title="dom-VTTCue-getCueAsHTML">getCueAsHTML</a>();
 };</pre>
@@ -5551,6 +5553,7 @@
   Anne van Kesteren,
   Glenn Maynard,
   Ronny Mennerich,
+  Ms2ger,
   Frank Olivier,
   Giuseppe Pascale,
   Simon Pieters,