Skip to content

Commit

Permalink
[giowt] (0) fix the alignment of end-aligned text cues
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=14575
Affected topics: Video Text Tracks

git-svn-id: http://svn.whatwg.org/webapps@7059 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 19, 2012
1 parent 13cc9d6 commit e769fa2
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions source
Expand Up @@ -109020,21 +109020,29 @@ iframe:not([seamless]) { border: 2px inset; }
<dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
the <span>text track cue alignment</span> is <span title="text track cue start alignment">start</span>,
and <var title="">direction</var> is 'ltr'</dt>
<dd>
<p>Let <var title="">x-position</var> be the <span>text track cue text position</span>.</p>
</dd>

<dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
the <span>text track cue alignment</span> is <span title="text track cue end alignment">end</span>,
and <var title="">direction</var> is 'rtl'</dt>
<dd>
<p>Let <var title="">x-position</var> be the <span>text track cue text position</span>.</p>
<p>Let <var title="">x-position</var> be the <span>text track cue text position</span> subtracted from 100.</p>
</dd>

<dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
the <span>text track cue alignment</span> is <span title="text track cue end alignment">end</span>,
and <var title="">direction</var> is 'ltr'</dt>
<dd>
<p>Let <var title="">x-position</var> be the <span>text track cue text position</span> minus <var title="">size</var>.</p>
</dd>

<dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
the <span>text track cue alignment</span> is <span title="text track cue start alignment">start</span>,
and <var title="">direction</var> is 'rtl'</dt>
<dd>
<p>Let <var title="">x-position</var> be the <span>text track cue text position</span> subtracted from 100.</p>
<p>Let <var title="">x-position</var> be the <span>text track cue text position</span> subtracted from 100, minus <var title="">size</var>.</p>
</dd>

<dt>If the <span>text track cue writing direction</span> is <span title="text track cue vertical growing left writing direction">vertical growing left</span>,
Expand All @@ -109050,7 +109058,7 @@ iframe:not([seamless]) { border: 2px inset; }
<dt>If the <span>text track cue writing direction</span> is <span title="text track cue vertical growing right writing direction">vertical growing right</span>,
and the <span>text track cue alignment</span> is <span title="text track cue end alignment">end</span></dt>
<dd>
<p>Let <var title="">y-position</var> be the <span>text track cue text position</span> subtracted from 100.</p>
<p>Let <var title="">y-position</var> be the <span>text track cue text position</span> minus <var title="">size</var>.</p>
</dd>

<dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
Expand All @@ -109064,8 +109072,7 @@ iframe:not([seamless]) { border: 2px inset; }
the <span>text track cue alignment</span> is <span title="text track cue middle alignment">middle</span>,
and <var title="">direction</var> is 'rtl'</dt>
<dd>
<p>Let <var title="">x-position-reverse</var> be the <span>text track cue text position</span> minus half of <var title="">size</var>.</p>
<p>Let <var title="">x-position</var> be <var title="">x-position-reverse</var> subtracted from 100.</p>
<p>Let <var title="">x-position</var> be the <span>text track cue text position</span> subtracted from 100, minus half of <var title="">size</var>.</p>
</dd>

<dt>If the <span>text track cue writing direction</span> is <span title="text track cue vertical growing left writing direction">vertical growing left</span>,
Expand Down

0 comments on commit e769fa2

Please sign in to comment.