<?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>19458</bug_id>
          
          <creation_ts>2012-10-11 06:45:42 +0000</creation_ts>
          <short_desc>Specify a CSS feature to do balanced line wrapping as in WebVTT</short_desc>
          <delta_ts>2015-04-08 07:51:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Text</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>
          <dependson>17473</dependson>
    
    <dependson>17218</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters">zcorpan</reporter>
          <assigned_to name="fantasai">fantasai.bugs</assigned_to>
          <cc>glenn</cc>
    
    <cc>ian</cc>
    
    <cc>kojiishi</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-texttracks</cc>
    
    <cc>silviapfeiffer1</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75940</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-10-11 06:45:42 +0000</bug_when>
    <thetext>+++ This bug was initially created as a clone of Bug #17218 +++

This bug is about relaxing the line balancing algorithm. I&apos;d like balancing to be a CSS feature available for arbitrary content, but then the algorithm in the spec seems too expensive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75984</commentid>
    <comment_count>1</comment_count>
    <who name="Glenn Maynard">glenn</who>
    <bug_when>2012-10-11 14:49:13 +0000</bug_when>
    <thetext>FYI, my suggestion was to perform ordinary wrapping, then to keep reducing the width and re-wrapping the content until doing so would cause it to increase in height.  This is more expensive than normal wrapping, since it&apos;s performing normal wrapping repeatedly, but it&apos;s just an increase in the constant factor, not to the algorithmic complexity, and binary searching the width could reduce it to just a few passes.

An example in JS: https://zewt.org/~glenn/balanced-wrapping.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78583</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-21 19:08:31 +0000</bug_when>
    <thetext>I&apos;m confused. What&apos;s the problem with the spec here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78586</commentid>
    <comment_count>3</comment_count>
    <who name="Glenn Maynard">glenn</who>
    <bug_when>2012-11-21 19:20:01 +0000</bug_when>
    <thetext>http://krijnhoetmer.nl/irc-logs/whatwg/20120418#l-30</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78633</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-22 07:11:06 +0000</bug_when>
    <thetext>This isn&apos;t CSS, so... what&apos;s the problem here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78635</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-11-22 07:16:56 +0000</bug_when>
    <thetext>That it&apos;s not CSS is a problem.

&gt; I&apos;d like balancing
&gt; to be a CSS feature available for arbitrary content</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78659</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-22 19:16:11 +0000</bug_when>
    <thetext>If you want CSS to define a balancing feature, that&apos;s great, but then this is in quite the wrong component. Even if we did have such a feature, we would still want to define it more strictly for WebVTT than CSS, since that would improve interop, IMHO. So this seems orthogonal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78662</commentid>
    <comment_count>7</comment_count>
    <who name="Glenn Maynard">glenn</who>
    <bug_when>2012-11-22 19:34:17 +0000</bug_when>
    <thetext>How does it improve interop, when the results are going to depend on the UA&apos;s particular font rendering anyway?  This is just another word-wrapping mode, and if it&apos;s useful in general and not just for WebVTT, it doesn&apos;t make sense for WebVTT and CSS to have *different* balanced wrapping algorithms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119305</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-04-07 13:24:46 +0000</bug_when>
    <thetext>http://dev.w3.org/csswg/css-text-4/#valdef-text-wrap-balance</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119341</commentid>
    <comment_count>9</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-04-08 07:51:37 +0000</bug_when>
    <thetext>Thanks, bug 28432 is to use this in WebVTT.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>