<?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>16322</bug_id>
          
          <creation_ts>2012-03-12 08:19:04 +0000</creation_ts>
          <short_desc>same-sign flexibility in flexing algorithm</short_desc>
          <delta_ts>2012-04-17 17:17:39 +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>Flexbox</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/csswg/css3-flexbox/</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="Alex Mogilevsky">alexmog</reporter>
          <assigned_to name="Alex Mogilevsky">alexmog</assigned_to>
          <cc>alexmog</cc>
    
    <cc>dbaron</cc>
    
    <cc>jackalmage</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65343</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Mogilevsky">alexmog</who>
    <bug_when>2012-03-12 08:19:04 +0000</bug_when>
    <thetext>Current flexing algorithm choses to use either positive or negative flexibility for all items, which helps to ensure it will finish with any combination of flexibility and min/max sizes. This approach doesn&apos;t allow to optimize layout by shrinking a large item that is far from both its min and its max sizes, and growing a small item that is close to its preferred size. It may be possible to get a better result by calculating penalties based on actual size change, flexibility settings and where there calculated size is relative to min/max/preferred sizes.

Example to consider:

&lt;flexbox&gt;
    &lt;div style=&quot;flex:1 1 auto&quot;&gt;long description of something important that is about to happen&lt;/div&gt;
    &lt;button style=&quot;flex:1 1 auto&quot;&gt;I agree&lt;/button&gt;
&lt;/flexbox&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>