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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>105569</bug_id>
          
          <creation_ts>2012-12-20 12:44:50 -0800</creation_ts>
          <short_desc>WebVTT line breaks should try to make lines close to the same size</short_desc>
          <delta_ts>2025-08-28 03:12:20 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>105496</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dean Jackson">dino</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>dino</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>ian</cc>
    
    <cc>silviapf</cc>
    
    <cc>vcarbune</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>795680</commentid>
    <comment_count>0</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2012-12-20 12:44:50 -0800</bug_when>
    <thetext>From the WebVTT spec: &quot;Regardless of the value of the &apos;white-space&apos; property, any line breaks inserted by the user agent for the purposes of line wrapping must be placed so as to minimize Δ across each run of consecutive lines between preserved newlines in the source. Δ for a set of lines is defined as the sum over each line of the absolute of the difference between the line&apos;s length and the mean line length of the set.&quot;

e.g. avoid this:

   Hello World How Are
   You</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>795681</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2012-12-20 12:45:23 -0800</bug_when>
    <thetext>&lt;rdar://problem/12919735&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>795683</commentid>
    <comment_count>2</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2012-12-20 12:46:18 -0800</bug_when>
    <thetext>The obvious solution is:

  Hello
  World
  How
  Are
  You

Kidding!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>795687</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-12-20 12:47:35 -0800</bug_when>
    <thetext>Or:

 |ello World How Are Yo|

:-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2139299</commentid>
    <comment_count>4</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2025-08-28 03:12:20 -0700</bug_when>
    <thetext>Seems like this would be solved by applying `text-wrap-style: balance` to WebVTT text.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>