<?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>22016</bug_id>
          
          <creation_ts>2013-05-13 08:09:38 +0000</creation_ts>
          <short_desc>WebVTT: Check calculation of width and size</short_desc>
          <delta_ts>2014-05-12 09:24:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>TextTracks CG</product>
          <component>WebVTT</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>v1</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Silvia Pfeiffer">silviapfeiffer1</reporter>
          <assigned_to name="Philip Jägenstedt">philipj</assigned_to>
          <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-texttracks</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87587</commentid>
    <comment_count>0</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-05-13 08:09:38 +0000</bug_when>
    <thetext>If the writing direction is right-to-left, it appears that the a cue can go out of bounds.

&quot;If the text track cue writing direction is horizontal, the text track cue alignment is end, and direction is &apos;rtl&apos;
Let maximum size be the text track cue text position subtracted from 100.&quot;
http://dev.w3.org/html5/webvtt/#cues-with-video

&quot;If the text track cue writing direction is horizontal, the text track cue alignment is end, and direction is &apos;rtl&apos;
Let x-position be the text track cue text position subtracted from 100.&quot;
http://dev.w3.org/html5/webvtt/#cues-with-video

For example, at position 44%, width should become 56%, and left 56%.
For a video with width of 100px, this would result in a box from 56px to 112px.

Now if the width is expanding left instead of right this would make sense (0px to 56px) but I cannot find anything that states RTL width expands left. It appears that width is always to the right of the left position.

(Reported by kyle@barnhart.ca)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90701</commentid>
    <comment_count>1</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-07-13 07:17:08 +0000</bug_when>
    <thetext>will be resolved as part of bug 20037

*** This bug has been marked as a duplicate of bug 20037 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105639</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-11 13:10:13 +0000</bug_when>
    <thetext>Reopening since the new spec has the same problem, by removing the maximum width calculation altogether.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105659</commentid>
    <comment_count>3</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-05-12 01:13:17 +0000</bug_when>
    <thetext>The arithmetic problem of this bug is fixed, since cue position doesn&apos;t influence the width calculation of the text any longer.

When the author specifies &quot;size&quot;, we now have a different approach and honour that specification, even if it overflows the video viewport.

However, I believe there is indeed a question about the case where &quot;size&quot; is not specified at all, thus a default width of 100% is assumed. Is this what the author would expect? Likely not.

It&apos;s a different bug though, so let&apos;s not taint bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105701</commentid>
    <comment_count>4</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-12 09:24:48 +0000</bug_when>
    <thetext>OK, I&apos;ve filed bug 25660 instead.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>