- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 26 Oct 2011 23:01:33 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv18187 Modified Files: Overview.html Log Message: Somehow the automatic feature of cue line position was never properly specified. (whatwg r6769) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.5418 retrieving revision 1.5419 diff -u -d -r1.5418 -r1.5419 --- Overview.html 26 Oct 2011 22:38:36 -0000 1.5418 +++ Overview.html 26 Oct 2011 23:01:28 -0000 1.5419 @@ -27080,39 +27080,13 @@ otherwise.</p> <p>The <dfn id="dom-texttrackcue-lineposition" title="dom-TextTrackCue-linePosition"><code>linePosition</code></dfn> - attribute, on getting, must return the <span>text track cue line - position</span> of the <a href="#text-track-cue">text track cue</a> that the - <code><a href="#texttrackcue">TextTrackCue</a></code> object represents, if that value is - numeric. Otherwise, the value is the special value <span title="text - track cue automatic line position">auto</span>; if the <span>text - track cue snap-to-lines flag</span> of the <a href="#text-track-cue">text track - cue</a> that the <code><a href="#texttrackcue">TextTrackCue</a></code> object represents is - not set, the attribute must return the value 100; otherwise, it must - return the value returned by the following algorithm:</p> - - <ol><li><p>Let <var title="">cue</var> be the <a href="#text-track-cue">text track - cue</a> that the <code><a href="#texttrackcue">TextTrackCue</a></code> object - represents.</li> - - <li><p>If <var title="">cue</var> is not associated with a - <a href="#text-track">text track</a>, return −1 and abort these - steps.</li> - - <li><p>Let <var title="">track</var> be the <a href="#text-track">text track</a> - that the <var title="">cue</var> is associated with.</li> - - <li><p>Let <var title="">n</var> be the number of <a href="#text-track" title="text - track">text tracks</a> whose <a href="#text-track-mode">text track mode</a> is - <a href="#text-track-showing" title="text track showing">showing</a> or <a href="#text-track-showing-by-default" title="text track showing by default">showing by default</a> and - that are in the <a href="#media-element">media element</a>'s <a href="#list-of-text-tracks">list of text - tracks</a> before <var title="">track</var>.</li> - - <li><p>Return <var title="">n</var>.</li> - - </ol><p>On setting, if the <span>text track cue snap-to-lines flag</span> - is not set, and the new value is negative or greater than 100, then - throw an <code><a href="#indexsizeerror">IndexSizeError</a></code> exception. Otherwise, set the - <span>text track cue line position</span> to the new value.</p> + attribute, on getting, must return the <span>text track cue computed + line position</span> of the <a href="#text-track-cue">text track cue</a> that the + <code><a href="#texttrackcue">TextTrackCue</a></code> object represents. On setting, if the + <span>text track cue snap-to-lines flag</span> is not set, and the + new value is negative or greater than 100, then throw an + <code><a href="#indexsizeerror">IndexSizeError</a></code> exception. Otherwise, set the <span>text + track cue line position</span> to the new value.</p> <p class="note">There is no way to explicitly set the <span>text track cue line position</span> to the special default <span title="text track cue automatic line position">auto</span> @@ -65770,7 +65744,7 @@ <dt>If the <a href="#text-track-cue-writing-direction">text track cue writing direction</a> is <a href="#text-track-cue-horizontal-writing-direction" title="text track cue horizontal writing direction">horizontal</a>, and the <span>text track cue snap-to-lines flag</span> is not set</dt> <dd> - <p>Let <var title="">y-position</var> be the <span>text track cue line position</span>.</p> + <p>Let <var title="">y-position</var> be the <span>text track cue computed line position</span>.</p> </dd> <dt>If the <a href="#text-track-cue-writing-direction">text track cue writing direction</a> is <a href="#text-track-cue-vertical-growing-left-writing-direction" title="text track cue vertical growing left writing direction">vertical growing left</a>, @@ -65786,7 +65760,7 @@ <dt>If the <a href="#text-track-cue-writing-direction">text track cue writing direction</a> is <a href="#text-track-cue-vertical-growing-right-writing-direction" title="text track cue vertical growing right writing direction">vertical growing right</a>, and the <span>text track cue snap-to-lines flag</span> is not set</dt> <dd> - <p>Let <var title="">x-position</var> be the <span>text track cue line position</span>.</p> + <p>Let <var title="">x-position</var> be the <span>text track cue computed line position</span>.</p> </dd> </dl></li> @@ -65898,7 +65872,7 @@ step labeled <i>done positioning</i> below.</li> <li><p>Let <var title="">line position</var> be the - <span>text track cue line position</span>.</li> + <span>text track cue computed line position</span>.</li> <li><p><strong>Vertical Growing Left</strong>: Add one to <var title="">line position</var> then negate it.</li> @@ -66000,7 +65974,7 @@ <dd> <p>Let <var title="">x</var> be a percentage given by the <span>text track cue text position</span>, and let <var title="">y</var> be a percentage given by the <span>text - track cue line position</span>.</p> + track cue computed line position</span>.</p> </dd> <dt>If the <a href="#text-track-cue-writing-direction">text track cue writing direction</a> is <a href="#text-track-cue-horizontal-writing-direction" title="text track cue horizontal writing direction">horizontal</a>, @@ -66009,13 +65983,13 @@ <p>Let <var title="">x</var> be a percentage given by the <span>text track cue text position</span> subtracted from 100, and let <var title="">y</var> be a percentage given - by the <span>text track cue line position</span>.</p> + by the <span>text track cue computed line position</span>.</p> </dd> <dt>If the <a href="#text-track-cue-writing-direction">text track cue writing direction</a> is <a href="#text-track-cue-vertical-growing-left-writing-direction" title="text track cue vertical growing left writing direction">vertical growing left</a></dt> <dd> <p>Let <var title="">x</var> be a percentage given by the - <span>text track cue line position</span> subtracted from + <span>text track cue computed line position</span> subtracted from 100, and let <var title="">y</var> be a percentage given by the <span>text track cue text position</span>.</p> </dd> @@ -66023,7 +65997,7 @@ <dt>If the <a href="#text-track-cue-writing-direction">text track cue writing direction</a> is <a href="#text-track-cue-vertical-growing-right-writing-direction" title="text track cue vertical growing right writing direction">vertical growing right</a></dt> <dd> <p>Let <var title="">x</var> be a percentage given by the - <span>text track cue line position</span>, and let <var title="">y</var> be a percentage given by the <span>text + <span>text track cue computed line position</span>, and let <var title="">y</var> be a percentage given by the <span>text track cue text position</span>.</p> </dd>
Received on Wednesday, 26 October 2011 23:01:40 UTC