Skip to content

Commit

Permalink
Don't try to apply lineAlign before CSS has been applied
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip committed Sep 9, 2014
1 parent e7758e6 commit 85d12bb
Showing 1 changed file with 10 additions and 58 deletions.
68 changes: 10 additions & 58 deletions webvtt.html
Original file line number Diff line number Diff line change
Expand Up @@ -4054,66 +4054,14 @@ <h4>Processing model</h4>

<dt>If the <a>text track cue writing direction</a> is <a title="text track cue horizontal
writing direction">horizontal</a></dt>
<dd>
<dl class="switch">
<dt>If the <a>text track cue line alignment</a> is <a title="text track cue line start
alignment">start alignment</a></dt>
<dd><p>Let <var>y-position</var> be the <a>text track cue computed line
position</a>.</p></dd>

<dt>If the <a>text track cue line alignment</a> is <a title="text track cue text
position middle alignment">middle alignment</a></dt>
<dd><p>Let <var>y-position</var> be the <a>text track cue computed line position</a>
minus half of the cue box height.</p></dd>

<dt>If the <a>text track cue line alignment</a> is <a title="text track cue text
position end alignment">end alignment</a></dt>
<dd><p>Let <var>y-position</var> be the <a>text track cue computed line position</a>
minus the cue box height.</p></dd>
</dl>
</dd>

<dt>If the <a>text track cue writing direction</a> is <a title="text track cue vertical
growing left writing direction">vertical growing left</a></dt>
<dd>
<dl class="switch">
<dt>If the <a>text track cue line alignment</a> is <a title="text track cue text
position start alignment">start alignment</a></dt>
<dd><p>Let <var>x-position</var> be 100 minus the <a>text track cue computed line
position</a> minus the cue box width.</p></dd>

<dt>If the <a>text track cue line alignment</a> is <a title="text track cue text
position middle alignment">middle alignment</a></dt>
<dd><p>Let <var>x-position</var> be 100 minus the <a>text track cue computed line
position</a> minus half of the cue box width.</p></dd>

<dt>If the <a>text track cue line alignment</a> is <a title="text track cue text
position end alignment">end alignment</a></dt>
<dd><p>Let <var>x-position</var> be 100 minus the <a>text track cue computed line
position</a>.</p></dd>
</dl>
</dd>
<dd><p>Let <var>y-position</var> be the <a>text track cue computed line
position</a>.</p></dd>

<dt>If the <a>text track cue writing direction</a> is <a title="text track cue vertical
growing right writing direction">vertical growing right</a></dt>
<dd>
<dl class="switch">
<dt>If the <a>text track cue line alignment</a> is <a title="text track cue text
position start alignment">start alignment</a></dt>
<dd><p>Let <var>x-position</var> be the <a>text track cue computed line
position</a>.</p></dd>

<dt>If the <a>text track cue line alignment</a> is <a title="text track cue text
position middle alignment">middle alignment</a></dt>
<dd><p>Let <var>x-position</var> be the <a>text track cue computed line position</a>
plus half of the cue box width.</p></dd>

<dt>If the <a>text track cue line alignment</a> is <a title="text track cue text
position end alignment">end alignment</a></dt>
<dd><p>Let <var>x-position</var> be the <a>text track cue computed line position</a>
plus the cue box width.</p></dd>
</dl>
</dd>
growing left writing direction">vertical growing left</a> or <a title="text track cue
vertical growing right writing direction">vertical growing right</a></dt>
<dd><p>Let <var>x-position</var> be the <a>text track cue computed line
position</a>.</p></dd>

</dl>
</dd>
Expand All @@ -4135,6 +4083,10 @@ <h4>Processing model</h4>
</dd>

</dl>

<p class="note">These are not final positions, they are merely temporary positions used to
calculate box dimensions below.</p>

</li>

<li><p>Let <var>left</var> be '<var>x-position</var>&#x2009;vw' and <var>top</var> be
Expand Down

0 comments on commit 85d12bb

Please sign in to comment.