[html5] r5191 - [giow] (0) Ensure <video> controls don't overlap captions, mark 2 -- this time, [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Jul 22 16:54:00 PDT 2010


Author: ianh
Date: 2010-07-22 16:53:59 -0700 (Thu, 22 Jul 2010)
New Revision: 5191

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Ensure <video> controls don't overlap captions, mark 2 -- this time, move the captions rather than the controls.

Modified: complete.html
===================================================================
--- complete.html	2010-07-22 22:44:09 UTC (rev 5190)
+++ complete.html	2010-07-22 23:53:59 UTC (rev 5191)
@@ -86613,10 +86613,13 @@
   relevant rendering rules; for <a href=#websrt>WebSRT</a>, those are the
   <a href=#websrt-cue-text-rendering-rules>WebSRT cue text rendering rules</a> defined below.</p>
 
-  <p>When <a href=#expose-a-user-interface-to-the-user title="expose a user interface to the user">exposing a
-  user interface</a> for a <code><a href=#video>video</a></code> element, user agents
-  should attempt to position controls so as to not overlay any active
-  subtitles or captions.</p>
+  <p>When the user agent starts <a href=#expose-a-user-interface-to-the-user title="expose a user interface
+  to the user">exposing a user interface</a> for a
+  <code><a href=#video>video</a></code> element, user agents should run the <a href=#rules-for-updating-the-timed-track-rendering>rules
+  for updating the timed track rendering</a> of each of the <a href=#timed-track title="timed track">timed tracks</a> in the <code><a href=#video>video</a></code>
+  element's <a href=#list-of-timed-tracks>list of timed tracks</a> that are <a href=#timed-track-showing title="timed track showing">showing</a> (e.g., for <a href=#timed-track title="timed track">timed tracks</a> based on
+  <a href=#websrt>WebSRT</a>, the <a href=#rules-for-updating-the-display-of-websrt-timed-tracks>rules for updating the display of
+  WebSRT timed tracks</a>).</p>
 <!--TT-->
 
   <p class=note>Resizing <code><a href=#video>video</a></code> and <code><a href=#the-canvas-element>canvas</a></code>
@@ -86668,6 +86671,16 @@
    <li><p>Let <var title="">output</var> be an empty list of
    absolutely positioned CSS block boxes.</li>
 
+   <li><p>If the user agent is <a href=#expose-a-user-interface-to-the-user title="expose a user interface to
+   the user">exposing a user interface</a> for <var title="">video</var>, add to <var title="">output</var> one or more
+   completely transparent positioned CSS block boxes that cover the
+   same region as the user interface.</p>
+
+   <li><p>If the last time these rules were run, the user agent was
+   not <a href=#expose-a-user-interface-to-the-user title="expose a user interface to the user">exposing a
+   user interface</a> for <var title="">video</var>, but now it is,
+   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 title="">video</var>'s <a href=#list-of-timed-tracks>list of timed tracks</a> that
    have as their <a href=#rules-for-updating-the-timed-track-rendering>rules for updating the timed track
@@ -86682,14 +86695,17 @@
    of cues</a> that have their <a href=#timed-track-cue-active-flag>timed track cue active
    flag</a> set.</li>
 
-   <li><p>For each <a href=#timed-track-cue>timed track cue</a> <var title="">cue</var> in <var title="">cues</var>: if <var title="">cue</var>'s <a href=#timed-track-cue-display-state>timed track cue display state</a> has
-   a set of CSS boxes, then add those boxes to <var title="">output</var>, and remove <var title="">cue</var> from <var title="">cues</var>.</li>
+   <li><p>If <var title="">reset</var> is false, then, for each
+   <a href=#timed-track-cue>timed track cue</a> <var title="">cue</var> in <var title="">cues</var>: if <var title="">cue</var>'s <a href=#timed-track-cue-display-state>timed track
+   cue display state</a> has a set of CSS boxes, then add those
+   boxes to <var title="">output</var>, and remove <var title="">cue</var> from <var title="">cues</var>.</li>
 
    <li>
 
     <p>For each <a href=#timed-track-cue>timed track cue</a> <var title="">cue</var>
-    in <var title="">cues</var> that remains, in <a href=#timed-track-cue-order>timed track cue
-    order</a>, run the following substeps:</p>
+    in <var title="">cues</var> that has not yet had corresponding CSS
+    boxes added to <var title="">output</var>, in <a href=#timed-track-cue-order>timed track
+    cue order</a>, run the following substeps:</p>
 
     <ol><li><p>Let <var title="">nodes</var> be the <a href=#list-of-websrt-node-objects>list of WebSRT
      Node Objects</a> obtained by applying the <a href=#websrt-cue-text-parsing-rules>WebSRT cue

Modified: index
===================================================================
--- index	2010-07-22 22:44:09 UTC (rev 5190)
+++ index	2010-07-22 23:53:59 UTC (rev 5191)
@@ -79659,10 +79659,13 @@
   relevant rendering rules; for <a href=#websrt>WebSRT</a>, those are the
   <a href=#websrt-cue-text-rendering-rules>WebSRT cue text rendering rules</a> defined below.</p>
 
-  <p>When <a href=#expose-a-user-interface-to-the-user title="expose a user interface to the user">exposing a
-  user interface</a> for a <code><a href=#video>video</a></code> element, user agents
-  should attempt to position controls so as to not overlay any active
-  subtitles or captions.</p>
+  <p>When the user agent starts <a href=#expose-a-user-interface-to-the-user title="expose a user interface
+  to the user">exposing a user interface</a> for a
+  <code><a href=#video>video</a></code> element, user agents should run the <a href=#rules-for-updating-the-timed-track-rendering>rules
+  for updating the timed track rendering</a> of each of the <a href=#timed-track title="timed track">timed tracks</a> in the <code><a href=#video>video</a></code>
+  element's <a href=#list-of-timed-tracks>list of timed tracks</a> that are <a href=#timed-track-showing title="timed track showing">showing</a> (e.g., for <a href=#timed-track title="timed track">timed tracks</a> based on
+  <a href=#websrt>WebSRT</a>, the <a href=#rules-for-updating-the-display-of-websrt-timed-tracks>rules for updating the display of
+  WebSRT timed tracks</a>).</p>
 <!--TT-->
 
   <p class=note>Resizing <code><a href=#video>video</a></code> and <code><a href=#the-canvas-element>canvas</a></code>
@@ -79714,6 +79717,16 @@
    <li><p>Let <var title="">output</var> be an empty list of
    absolutely positioned CSS block boxes.</li>
 
+   <li><p>If the user agent is <a href=#expose-a-user-interface-to-the-user title="expose a user interface to
+   the user">exposing a user interface</a> for <var title="">video</var>, add to <var title="">output</var> one or more
+   completely transparent positioned CSS block boxes that cover the
+   same region as the user interface.</p>
+
+   <li><p>If the last time these rules were run, the user agent was
+   not <a href=#expose-a-user-interface-to-the-user title="expose a user interface to the user">exposing a
+   user interface</a> for <var title="">video</var>, but now it is,
+   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 title="">video</var>'s <a href=#list-of-timed-tracks>list of timed tracks</a> that
    have as their <a href=#rules-for-updating-the-timed-track-rendering>rules for updating the timed track
@@ -79728,14 +79741,17 @@
    of cues</a> that have their <a href=#timed-track-cue-active-flag>timed track cue active
    flag</a> set.</li>
 
-   <li><p>For each <a href=#timed-track-cue>timed track cue</a> <var title="">cue</var> in <var title="">cues</var>: if <var title="">cue</var>'s <a href=#timed-track-cue-display-state>timed track cue display state</a> has
-   a set of CSS boxes, then add those boxes to <var title="">output</var>, and remove <var title="">cue</var> from <var title="">cues</var>.</li>
+   <li><p>If <var title="">reset</var> is false, then, for each
+   <a href=#timed-track-cue>timed track cue</a> <var title="">cue</var> in <var title="">cues</var>: if <var title="">cue</var>'s <a href=#timed-track-cue-display-state>timed track
+   cue display state</a> has a set of CSS boxes, then add those
+   boxes to <var title="">output</var>, and remove <var title="">cue</var> from <var title="">cues</var>.</li>
 
    <li>
 
     <p>For each <a href=#timed-track-cue>timed track cue</a> <var title="">cue</var>
-    in <var title="">cues</var> that remains, in <a href=#timed-track-cue-order>timed track cue
-    order</a>, run the following substeps:</p>
+    in <var title="">cues</var> that has not yet had corresponding CSS
+    boxes added to <var title="">output</var>, in <a href=#timed-track-cue-order>timed track
+    cue order</a>, run the following substeps:</p>
 
     <ol><li><p>Let <var title="">nodes</var> be the <a href=#list-of-websrt-node-objects>list of WebSRT
      Node Objects</a> obtained by applying the <a href=#websrt-cue-text-parsing-rules>WebSRT cue

Modified: source
===================================================================
--- source	2010-07-22 22:44:09 UTC (rev 5190)
+++ source	2010-07-22 23:53:59 UTC (rev 5191)
@@ -98807,10 +98807,16 @@
   relevant rendering rules; for <span>WebSRT</span>, those are the
   <span>WebSRT cue text rendering rules</span> defined below.</p>
 
-  <p>When <span title="expose a user interface to the user">exposing a
-  user interface</span> for a <code>video</code> element, user agents
-  should attempt to position controls so as to not overlay any active
-  subtitles or captions.</p>
+  <p>When the user agent starts <span title="expose a user interface
+  to the user">exposing a user interface</span> for a
+  <code>video</code> element, user agents should run the <span>rules
+  for updating the timed track rendering</span> of each of the <span
+  title="timed track">timed tracks</span> in the <code>video</code>
+  element's <span>list of timed tracks</span> that are <span
+  title="timed track showing">showing</span> (e.g., for <span
+  title="timed track">timed tracks</span> based on
+  <span>WebSRT</span>, the <span>rules for updating the display of
+  WebSRT timed tracks</span>).</p>
 <!--START w3c-html--><!--TT-->
 
   <p class="note">Resizing <code>video</code> and <code>canvas</code>
@@ -98866,6 +98872,18 @@
    <li><p>Let <var title="">output</var> be an empty list of
    absolutely positioned CSS block boxes.</p></li>
 
+   <li><p>If the user agent is <span title="expose a user interface to
+   the user">exposing a user interface</span> for <var
+   title="">video</var>, add to <var title="">output</var> one or more
+   completely transparent positioned CSS block boxes that cover the
+   same region as the user interface.</p>
+
+   <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
+   title="">reset</var> be false.</p>
+
    <li><p>Let <var title="">tracks</var> be the subset of
    <var title="">video</var>'s <span>list of timed tracks</span> that
    have as their <span>rules for updating the timed track
@@ -98883,18 +98901,19 @@
    of cues</span> that have their <span>timed track cue active
    flag</span> set.</p></li>
 
-   <li><p>For each <span>timed track cue</span> <var
-   title="">cue</var> in <var title="">cues</var>: if <var
-   title="">cue</var>'s <span>timed track cue display state</span> has
-   a set of CSS boxes, then add those boxes to <var
-   title="">output</var>, and remove <var title="">cue</var> from <var
-   title="">cues</var>.</p></li>
+   <li><p>If <var title="">reset</var> is false, then, for each
+   <span>timed track cue</span> <var title="">cue</var> in <var
+   title="">cues</var>: if <var title="">cue</var>'s <span>timed track
+   cue display state</span> has a set of CSS boxes, then add those
+   boxes to <var title="">output</var>, and remove <var
+   title="">cue</var> from <var title="">cues</var>.</p></li>
 
    <li>
 
     <p>For each <span>timed track cue</span> <var title="">cue</var>
-    in <var title="">cues</var> that remains, in <span>timed track cue
-    order</span>, run the following substeps:</p>
+    in <var title="">cues</var> that has not yet had corresponding CSS
+    boxes added to <var title="">output</var>, in <span>timed track
+    cue order</span>, run the following substeps:</p>
 
     <ol>
 




More information about the Commit-Watchers mailing list