Skip to content

Commit

Permalink
[giow] (1) Updating cues' styles and properties dynamically should be…
Browse files Browse the repository at this point in the history
… visible immediately

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=16920
Affected topics: Video Text Tracks

git-svn-id: http://svn.whatwg.org/webapps@7430 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 2, 2012
1 parent 1bd8ef0 commit bd0d971
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 4 deletions.
15 changes: 14 additions & 1 deletion complete.html
Expand Up @@ -34129,7 +34129,20 @@ <h6 id=text-track-model><span class=secno>4.8.10.12.1 </span>Text track model</h

</dd>

</dl><p>The <a href=#text-track-cue title="text track cue">text track cues</a> of a
</dl><p>When a <a href=#text-track-cue>text track cue</a> whose <a href=#text-track-cue-active-flag title="text track cue active flag">active
flag</a> is set has its
<a href=#text-track-cue-writing-direction title="text track cue writing direction">writing direction</a>,
<a href=#text-track-cue-snap-to-lines-flag title="text track cue snap-to-lines flag">snap-to-lines flag</a>,
<a href=#text-track-cue-line-position title="text track cue line position">line position</a>,
<a href=#text-track-cue-text-position title="text track cue text position">text position</a>,
<a href=#text-track-cue-size title="text track cue size">size</a>,
<a href=#text-track-cue-alignment title="text track cue alignment">alignment</a>, or
<a href=#text-track-cue-text title="text track cue text">text</a>
change value, then the user agent must empty the <a href=#text-track-cue-display-state>text track cue display state</a>, and
then immediately run the <a href=#text-track>text track</a>'s <a href=#rules-for-updating-the-display-of-webvtt-text-tracks>rules for updating the display of WebVTT
text tracks</a>.</p>

<p>The <a href=#text-track-cue title="text track cue">text track cues</a> of a
<a href=#media-element>media element</a>'s <a href=#text-track title="text track">text
tracks</a> are ordered relative to each other in the <dfn id=text-track-cue-order>text
track cue order</dfn>, which is determined as follows: first group
Expand Down
15 changes: 14 additions & 1 deletion index
Expand Up @@ -34129,7 +34129,20 @@ interface <dfn id=mediacontroller>MediaController</dfn> : <a href=#eventtarget>E

</dd>

</dl><p>The <a href=#text-track-cue title="text track cue">text track cues</a> of a
</dl><p>When a <a href=#text-track-cue>text track cue</a> whose <a href=#text-track-cue-active-flag title="text track cue active flag">active
flag</a> is set has its
<a href=#text-track-cue-writing-direction title="text track cue writing direction">writing direction</a>,
<a href=#text-track-cue-snap-to-lines-flag title="text track cue snap-to-lines flag">snap-to-lines flag</a>,
<a href=#text-track-cue-line-position title="text track cue line position">line position</a>,
<a href=#text-track-cue-text-position title="text track cue text position">text position</a>,
<a href=#text-track-cue-size title="text track cue size">size</a>,
<a href=#text-track-cue-alignment title="text track cue alignment">alignment</a>, or
<a href=#text-track-cue-text title="text track cue text">text</a>
change value, then the user agent must empty the <a href=#text-track-cue-display-state>text track cue display state</a>, and
then immediately run the <a href=#text-track>text track</a>'s <a href=#rules-for-updating-the-display-of-webvtt-text-tracks>rules for updating the display of WebVTT
text tracks</a>.</p>

<p>The <a href=#text-track-cue title="text track cue">text track cues</a> of a
<a href=#media-element>media element</a>'s <a href=#text-track title="text track">text
tracks</a> are ordered relative to each other in the <dfn id=text-track-cue-order>text
track cue order</dfn>, which is determined as follows: first group
Expand Down
21 changes: 19 additions & 2 deletions source
Expand Up @@ -37396,6 +37396,19 @@ interface <dfn>MediaController</dfn> : <span>EventTarget</span> {

</dl>

<p>When a <span>text track cue</span> whose <span title="text track cue active flag">active
flag</span> is set has its
<span title="text track cue writing direction">writing direction</span>,
<span title="text track cue snap-to-lines flag">snap-to-lines flag</span>,
<span title="text track cue line position">line position</span>,
<span title="text track cue text position">text position</span>,
<span title="text track cue size">size</span>,
<span title="text track cue alignment">alignment</span>, or
<span title="text track cue text">text</span>
change value, then the user agent must empty the <span>text track cue display state</span>, and
then immediately run the <span>text track</span>'s <span>rules for updating the display of WebVTT
text tracks</span>.</p>

<p>The <span title="text track cue">text track cues</span> of a
<span>media element</span>'s <span title="text track">text
tracks</span> are ordered relative to each other in the <dfn>text
Expand Down Expand Up @@ -113973,7 +113986,7 @@ iframe[seamless] { display: block; }
<li><p>If the last time these rules were run, the user agent was
not <span title="expose a user interface to the user">exposing a
user interface</span> for <var title="">video</var>, but now it is,
let <var title="">reset</var> be true. Otherwise, let <var
optionally let <var title="">reset</var> be true. Otherwise, let <var
title="">reset</var> be false.</p>

<li><p>Let <var title="">tracks</var> be the subset of <var
Expand Down Expand Up @@ -114746,7 +114759,11 @@ iframe[seamless] { display: block; }
between applications of the <span>WebVTT cue text rendering
rules</span> (which are only run when the set of active cues
changes). User agents that support the pseudo-element described
below must dynamically update renderings accordingly.</p>
below must dynamically update renderings accordingly.
When either 'white-space' or one of the properties corresponding to the 'font' shorthand
(including 'line-height') changes value, then the <span>text track cue</span>'s <span>text track
cue display state</span> must be emptied and the <span>text track</span>'s <span>rules for
updating the text track rendering</span> must be immediately rerun.</p>

<p>Pseudo-elements apply to elements that are matched by
selectors. For the purpose of this section, that element is the
Expand Down

0 comments on commit bd0d971

Please sign in to comment.