<?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>14929</bug_id>
          
          <creation_ts>2011-11-25 08:40:30 +0000</creation_ts>
          <short_desc>&lt;track&gt; use the same names in the DOM API as in WebVTT&apos;s cue settings</short_desc>
          <delta_ts>2012-07-18 18:48:03 +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/#dom-texttrackcue-direction</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          <dependson>14646</dependson>
          
          <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>silviapfeiffer1</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60469</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-11-25 08:40:30 +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#dom-texttrackcue-direction
Complete: http://www.whatwg.org/c#dom-texttrackcue-direction

Comment:
&lt;track&gt; use the same names in the DOM API as in WebVTT&apos;s cue settings

Posted from: 85.227.157.105 by simonp@opera.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/535.8 (KHTML, like Gecko) Chrome/17.0.942.0 Safari/535.8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60470</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-11-25 08:44:22 +0000</bug_when>
    <thetext>(In reply to http://www.w3.org/Bugs/Public/show_bug.cgi?id=14646#c7)
&gt; Fair enough.
&gt; 
&gt; D: will become vertical: and the values will be changed to lr and rl
&gt; L: will become line:
&gt; T: will become position:
&gt; S: will become size:
&gt; A: will become align:

This sounds good.

However, I would like the settings and their exposure in the DOM API to be aligned, so that it&apos;s more obvious what things are called (compare with content attributes and IDL attributes in HTML). For instance, vertical: is &quot;direction&quot;:&quot;horizontal&quot; | &quot;vertical&quot; | &quot;vertical-lr&quot; in the DOM API. It would be better if it were &quot;vertical&quot;:&quot;&quot; | &quot;rl&quot; | &quot;lr&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60472</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-11-25 08:53:04 +0000</bug_when>
    <thetext>snapToLines and the magical value &quot;auto&quot; are also a bit annoying, though I&apos;m not sure what to do about them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61165</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-12-07 23:27:25 +0000</bug_when>
    <thetext>Yeah, I should examine what to do here. Unfortunately this blocks the other bug on an HTML spec change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64449</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-02-22 20:04:33 +0000</bug_when>
    <thetext>Ok, .alignment =&gt; .align is obvious low-hanging fruit, so let&apos;s definitely do that. Looking at the others...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64451</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-02-22 20:05:08 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7006.
Check-in comment: rename TextTrackCue.alignment to .align to match the setting name in VTT.
http://html5.org/tools/web-apps-tracker?from=7005&amp;to=7006</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64453</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-02-22 20:07:18 +0000</bug_when>
    <thetext>I liked linePosition and textPosition, but I guess calling them &apos;line&apos; and &apos;position&apos; isn&apos;t so bad. It&apos;s better than changing VTT to use &apos;line-position:&apos; and &apos;text-position:&apos;, I guess. And &quot;text position&quot; isn&apos;t any less ambiguous than &quot;position&quot; anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64454</commentid>
    <comment_count>7</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-02-22 20:08:26 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7007.
Check-in comment: rename TextTrackCue.linePosition and .textPosition to .line and .position respectively to match the setting names in VTT.
http://html5.org/tools/web-apps-tracker?from=7006&amp;to=7007</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64456</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-02-22 20:10:30 +0000</bug_when>
    <thetext>Having .vertical return &quot;&quot; for horizontal direction is a bit weird, but I guess it&apos;s ok too, since it means you can do

   if (cue.vertical) { /* vertical */ } else { /* horizontal */ }

...and yet get its exact value to work out what kind of vertical.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64457</commentid>
    <comment_count>9</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-02-22 20:12:04 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7008.
Check-in comment: rename TextTrackCue.direction to .vertical (and change the values accordingly) to match the setting names in VTT.
http://html5.org/tools/web-apps-tracker?from=7007&amp;to=7008</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>