- From: CVS User pjgenste <cvsmail@w3.org>
- Date: Tue, 10 Jun 2014 11:32:50 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/webvtt In directory roscoe:/tmp/cvs-serv23440 Modified Files: Overview.html Log Message: Sync WebVTT with Git commit c0da0c2044829e5c554959a6d2f4e8ba9a598e6e --- /sources/public/html5/webvtt/Overview.html 2014/06/10 11:12:53 1.155 +++ /sources/public/html5/webvtt/Overview.html 2014/06/10 11:32:50 1.156 @@ -1897,7 +1897,7 @@ the cue has a <a title="WebVTT vertical text cue setting" href="#dfn-webvtt-vertical-text-cue-setting" class="internalDFN">"vertical"</a>, <a title="WebVTT line position cue setting" href="#dfn-webvtt-line-position-cue-setting" class="internalDFN">"line"</a> or <a title="WebVTT size cue setting" href="#dfn-webvtt-size-cue-setting" class="internalDFN">"size"</a> cue setting. If a cue is - part of a region, its cue settings for <a title="WebVTT line position cue setting" href="#dfn-webvtt-line-position-cue-setting" class="internalDFN">"position"</a> + part of a region, its cue settings for <a title="WebVTT text position cue setting" href="#dfn-webvtt-text-position-cue-setting" class="internalDFN">"position"</a> and <a title="WebVTT alignment cue setting" href="#dfn-webvtt-alignment-cue-setting" class="internalDFN">"align"</a> are applied to the line boxes in the cue relative to the region box.</p></div> @@ -4039,14 +4039,29 @@ <li><p>If the <i>paragraph embedding level</i> determined in the previous step is even (the <i>paragraph direction</i> is left-to-right), let <var>direction</var> be 'ltr', otherwise, let it be 'rtl'.</p></li> - <li><p>Let <var>offset</var> be the <a href="#dfn-text-track-cue-computed-text-position" class="internalDFN">text track cue computed text position</a> multiplied by <var>region</var>'s <a href="#dfn-text-track-region-width" class="internalDFN">text track region width</a> and divided by 100 (i.e. interpret it as a percentage of the region width).</p></li> - - <li> - <p>If <var>direction</var> is 'ltr' and 'text-align' is 'start' or 'left', or if <var>direction</var> is 'rtl' and 'text-align' is 'end' or 'left', let <var>left</var> be <var>offset</var> and let <var>right</var> be 'auto'</p> - <p>If <var>direction</var> is 'ltr' and 'text-align' is 'end' or 'right', or if <var>direction</var> is 'rtl' and 'text-align' is 'start' or 'right', let <var>left</var> be 'auto' and <var>right</var> be <var>offset</var>.</p> - <p>If 'text-align' is 'middle', ignore the <var>offset</var>.</p> + <li><p>Let <var>offset</var> be the <a href="#dfn-text-track-cue-computed-text-position" class="internalDFN">text track cue computed text position</a> multiplied by + <var>region</var>'s <a href="#dfn-text-track-region-width" class="internalDFN">text track region width</a> and divided by 100 (i.e. interpret it as a + percentage of the region width).</p></li> + + <li><p>Adjust <var>offset</var> using the <a href="#dfn-text-track-cue-computed-text-position-alignment" class="internalDFN">text track cue computed text position alignment</a> + as follows: + </p><dd> + <dl class="switch"> + <dt>If the <a href="#dfn-text-track-cue-computed-text-position-alignment" class="internalDFN">text track cue computed text position alignment</a> is + <a title="text track cue text position middle alignment" href="#dfn-text-track-cue-text-position-middle-alignment" class="internalDFN">middle alignment</a>:</dt> + <dd><p>Subtract half of <var>region</var>'s <a href="#dfn-text-track-region-width" class="internalDFN">text track region width</a> from + <var>offset</var>.</p></dd> + + <dt>If the <a href="#dfn-text-track-cue-computed-text-position-alignment" class="internalDFN">text track cue computed text position alignment</a> is + <a title="text track cue text position end alignment" href="#dfn-text-track-cue-text-position-end-alignment" class="internalDFN">end alignment</a>:</dt> + <dd><p>Subtract <var>region</var>'s <a href="#dfn-text-track-region-width" class="internalDFN">text track region width</a> from + <var>offset</var>.</p></dd> + </dl> + </dd> </li> + <li>Set 'left' to <var>offset</var>.</li> + <li> <p>Apply the terms of the CSS specifications to <var>nodes</var> with the same constraints that are used when they are applied to <var>nodes</var> of a <var>cue</var> that is not part of a region.</p>
Received on Tuesday, 10 June 2014 11:32:51 UTC