<?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>20146</bug_id>
          
          <creation_ts>2012-11-29 03:08:55 +0000</creation_ts>
          <short_desc>WebVTT: Cue text rendering step adjustment</short_desc>
          <delta_ts>2013-07-08 03:09:36 +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></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="Silvia Pfeiffer">silviapfeiffer1</assigned_to>
          <cc>ian</cc>
    
    <cc>lawrence.forooghian</cc>
    
    <cc>mike</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>79082</commentid>
    <comment_count>0</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-11-29 03:08:55 +0000</bug_when>
    <thetext>In Section 3.5 WebVTT cue text rendering rules, rendering step 10 we calculate all the styles for the cues.

Step 7 sets the &apos;width&apos; from &apos;size&apos;:
If the text track cue writing direction is horizontal, then let width be &apos;size vw&apos; and height be &apos;auto&apos;. Otherwise, let width be &apos;auto&apos; and height be &apos;size vh&apos;. (These are CSS values used by the next section to set CSS properties for the rendering; &apos;vw&apos; and &apos;vh&apos; are CSS units.) [CSSVALUES]

Step 10 changes &apos;size&apos; again in substep 2 and 4 to remove edge margin:
2. If x-position is less than edge margin and the sum of x-position and size is more than edge margin, then increase x-position by edge margin and decrease size by the same amount.

4. If x-position is less than right margin edge, and the sum of x-position and size is more than right margin edge, then decrease size by edge margin.

However, the &apos;width&apos; calculation from Step 7 is not repeated. Thus, the cues potentially end up being too wide (e.g. 100% width, but offset by an edge margin).

==

I think Step 7 should be moved after Step 10.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81987</commentid>
    <comment_count>1</comment_count>
    <who name="Lawrence Forooghian">lawrence.forooghian</who>
    <bug_when>2013-01-23 10:25:17 +0000</bug_when>
    <thetext>Yes, I noticed this, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90410</commentid>
    <comment_count>2</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-07-08 03:09:36 +0000</bug_when>
    <thetext>Fixed in https://dvcs.w3.org/hg/text-tracks/rev/c818121c6dfb .</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>