Skip to content

Commit

Permalink
Link VTTRegion to the interface definition
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip committed Jun 4, 2014
1 parent d965d93 commit 6bba46e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions webvtt.html
Original file line number Diff line number Diff line change
Expand Up @@ -5387,7 +5387,7 @@ <h3>The <a><code>VTTCue</code></a> interface</h3>
</section>

<section>
<h3>The <code>VTTRegion</code> interface</h3>
<h3>The <a><code>VTTRegion</code></a> interface</h3>

<p>The following interface is used to expose WebVTT regions in the DOM API:</p>

Expand All @@ -5408,7 +5408,7 @@ <h3>The <code>VTTRegion</code> interface</h3>

<dt><var>region</var> = new <code title="dom-VTTRegion">VTTRegion</code>()</dt>
<dd>
<p>Returns a new <code>VTTRegion</code> object.</p>
<p>Returns a new <a><code>VTTRegion</code></a> object.</p>
</dd>

<dt><var>region</var> . <a title="dom-VTTRegion-width">width</a></dt>
Expand Down Expand Up @@ -5476,22 +5476,22 @@ <h3>The <code>VTTRegion</code> interface</h3>

<li><p>Let <var>region</var>'s <a>text track region scroll</a> be the empty string.</p></li>

<li><p>Return the <code>VTTRegion</code> object representing region.</p></li>
<li><p>Return the <a><code>VTTRegion</code></a> object representing region.</p></li>
</ol>

<p>The <dfn title="dom-VTTRegion-width"><code>width</code></dfn> attribute, on getting, must return the <a>text track region width</a> of the <a>text track region</a> that the <code>VTTRegion</code> object represents, in percent of video width. On setting, the <a>text track region width</a> must be set to the new value, interpreted as a percentage.</p>
<p>The <dfn title="dom-VTTRegion-width"><code>width</code></dfn> attribute, on getting, must return the <a>text track region width</a> of the <a>text track region</a> that the <a><code>VTTRegion</code></a> object represents, in percent of video width. On setting, the <a>text track region width</a> must be set to the new value, interpreted as a percentage.</p>

<p>The <dfn title="dom-VTTRegion-lines"><code>lines</code></dfn> attribute, on getting, must return the <a>text track region lines</a> of the <a>text track region</a> that the <code>VTTRegion</code> object represents, as number of lines. On setting, the <a>text track region lines</a> must be set to the new value, interpreted as a number of lines.</p>
<p>The <dfn title="dom-VTTRegion-lines"><code>lines</code></dfn> attribute, on getting, must return the <a>text track region lines</a> of the <a>text track region</a> that the <a><code>VTTRegion</code></a> object represents, as number of lines. On setting, the <a>text track region lines</a> must be set to the new value, interpreted as a number of lines.</p>

<p>The <dfn title="dom-VTTRegion-regionAnchorX"><code>regionAnchorX</code></dfn> attribute, on getting, must return the <a>text track region anchor</a> X offset of the <a>text track region</a> that the <code>VTTRegion</code> object represents, in percent of region width. On setting, the <a>text track region anchor</a> X distance must be set to the new value, interpreted as a percentage.</p>
<p>The <dfn title="dom-VTTRegion-regionAnchorX"><code>regionAnchorX</code></dfn> attribute, on getting, must return the <a>text track region anchor</a> X offset of the <a>text track region</a> that the <a><code>VTTRegion</code></a> object represents, in percent of region width. On setting, the <a>text track region anchor</a> X distance must be set to the new value, interpreted as a percentage.</p>

<p>The <dfn title="dom-VTTRegion-regionAnchorY"><code>regionAnchorY</code></dfn> attribute, on getting, must return the <a>text track region anchor</a> Y offset of the <a>text track region</a> that the <code>VTTRegion</code> object represents, in percent of region height. On setting, the <a>text track region anchor</a> Y distance must be set to the new value, interpreted as a percentage.</p>
<p>The <dfn title="dom-VTTRegion-regionAnchorY"><code>regionAnchorY</code></dfn> attribute, on getting, must return the <a>text track region anchor</a> Y offset of the <a>text track region</a> that the <a><code>VTTRegion</code></a> object represents, in percent of region height. On setting, the <a>text track region anchor</a> Y distance must be set to the new value, interpreted as a percentage.</p>

<p>The <dfn title="dom-VTTRegion-viewportAnchorX"><code>viewportAnchorX</code></dfn> attribute, on getting, must return the <a>text track region viewport anchor</a> X offset of the <a>text track region</a> that the <code>VTTRegion</code> object represents, in percent of video width. On setting, the <a>text track region viewport anchor</a> X distance must be set to the new value, interpreted as a percentage.</p>
<p>The <dfn title="dom-VTTRegion-viewportAnchorX"><code>viewportAnchorX</code></dfn> attribute, on getting, must return the <a>text track region viewport anchor</a> X offset of the <a>text track region</a> that the <a><code>VTTRegion</code></a> object represents, in percent of video width. On setting, the <a>text track region viewport anchor</a> X distance must be set to the new value, interpreted as a percentage.</p>

<p>The <dfn title="dom-VTTRegion-viewportAnchorY"><code>viewportAnchorY</code></dfn> attribute, on getting, must return the <a>text track region viewport anchor</a> Y offset of the <a>text track region</a> that the <code>VTTRegion</code> object represents, in percent of video height. On setting, the <a>text track region viewport anchor</a> Y distance must be set to the new value, interpreted as a percentage.</p>
<p>The <dfn title="dom-VTTRegion-viewportAnchorY"><code>viewportAnchorY</code></dfn> attribute, on getting, must return the <a>text track region viewport anchor</a> Y offset of the <a>text track region</a> that the <a><code>VTTRegion</code></a> object represents, in percent of video height. On setting, the <a>text track region viewport anchor</a> Y distance must be set to the new value, interpreted as a percentage.</p>

<p>The <dfn title="dom-VTTRegion-scroll"><code>scroll</code></dfn> attribute, on getting, must return the string from the second cell of the row in the table below whose first cell is the <a>text track region scroll</a> setting of the <a>text track region</a> that the <code>VTTRegion</code> object represents:</p>
<p>The <dfn title="dom-VTTRegion-scroll"><code>scroll</code></dfn> attribute, on getting, must return the string from the second cell of the row in the table below whose first cell is the <a>text track region scroll</a> setting of the <a>text track region</a> that the <a><code>VTTRegion</code></a> object represents:</p>
<table>
<thead>
<tr>
Expand Down

0 comments on commit 6bba46e

Please sign in to comment.