<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>14570</bug_id>
          
          <creation_ts>2011-10-27 09:09:45 +0000</creation_ts>
          <short_desc>&lt;track&gt; In section 4.8.10.12.1/&quot;A line position&quot;/&quot;text track cue computed line position&quot; algorithm: It seems better to let the step 5 be &quot;Increment n by one&quot;</short_desc>
          <delta_ts>2012-07-18 18:40:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#text-track-model</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>fs</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59058</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-10-27 09:09:45 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html
Multipage: http://www.whatwg.org/C#text-track-model
Complete: http://www.whatwg.org/c#text-track-model

Comment:
In section 4.8.10.12.1/&quot;A line position&quot;/&quot;text track cue computed line
position&quot; algorithm: It seems better to let the step 5 be &quot;Increment n by one&quot;
instead to get a mapping as: 0, 1, 2, 3... -&gt; -1, -2, -3, -4... ; instead of
0, 1, 2, 3... -&gt; 1, 0, -1, -2...

Posted from: 2001:4c28:a030:30:72f3:95ff:fe00:4501
User agent: Opera/9.80 (X11; Linux x86_64; U; sv) Presto/2.9.168 Version/11.51</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59372</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-11-01 06:11:06 +0000</bug_when>
    <thetext>Can you elaborate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59376</commentid>
    <comment_count>2</comment_count>
    <who name="Fredrik S">fs</who>
    <bug_when>2011-11-01 07:56:34 +0000</bug_when>
    <thetext>It is my understanding that (assuming horizontal writing direction) non-negative values in this context mean &quot;N:th line from the top&quot;, while negative values mean &quot;N:th line from the bottom&quot; (possibly with &quot;(N+1):th&quot; for the non-negative case to handle 0). Given the mapping:

  0, 1, 2, 3... -&gt; 1, 0, -1, -2... (i.e a line function lp = -(N - 1))

the first track would get primary placement on the second line from the top, while the second would get the first line and the third would be the first from the bottom.

With the suggested mapping:

  0, 1, 2, 3... -&gt; -1, -2, -3, -4... (function lp = -(N + 1))

the first track would get the first line from the bottom, the second would get the second et.c.

Furthermore it seems that a good default placement in the trivial case of one track and one cue from said track with the default position (which would be &apos;auto&apos;) would be as the first line from the bottom.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59421</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-11-01 16:58:11 +0000</bug_when>
    <thetext>Oh, I see what you&apos;re saying. Yeah, I got my steps backwards there (decrement then negate rather than negate then decrement). I&apos;ll fix it the way you suggest. Sorry, I was being a bit slow there trying to work out what you were talking about.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59422</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-11-01 17:00:40 +0000</bug_when>
    <thetext>BTW, the reason I was confused is that the mapping the spec used to have is so obviously completely bogus yet your tone was so polite regarding it (e.g. &quot;it seems better&quot; as opposed to &quot;the current text is just flat out wrong&quot;) that I was looking for a much more subtle problem! :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59423</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-11-01 17:00:51 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6809.
Check-in comment: I got the steps backwards here.
http://html5.org/tools/web-apps-tracker?from=6808&amp;to=6809</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>