<?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>16020</bug_id>
          
          <creation_ts>2007-11-16 14:25:23 -0800</creation_ts>
          <short_desc>A transition of width: auto to a fixed width computes auto as zero.</short_desc>
          <delta_ts>2017-06-15 00:23:08 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>
          
          <blocked>46590</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Timothy Hatcher">timothy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>arv</cc>
    
    <cc>bdakin</cc>
    
    <cc>bosselmann</cc>
    
    <cc>cedricv</cc>
    
    <cc>chriscoyier</cc>
    
    <cc>dglazkov</cc>
    
    <cc>dino</cc>
    
    <cc>farukates</cc>
    
    <cc>felixcca</cc>
    
    <cc>humaknlght</cc>
    
    <cc>hyatt</cc>
    
    <cc>jarred</cc>
    
    <cc>jcraig</cc>
    
    <cc>joe</cc>
    
    <cc>jonathon</cc>
    
    <cc>jscinoz</cc>
    
    <cc>kimmo.t.kinnunen</cc>
    
    <cc>lamargoddard</cc>
    
    <cc>mathias</cc>
    
    <cc>mihaip</cc>
    
    <cc>mjs</cc>
    
    <cc>mkozakewich</cc>
    
    <cc>rboucher</cc>
    
    <cc>rik</cc>
    
    <cc>samtsai</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>s+webkit</cc>
    
    <cc>webkit</cc>
    
    <cc>webmaster</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61420</commentid>
    <comment_count>0</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2007-11-16 14:25:23 -0800</bug_when>
    <thetext>A transition of width: auto to a fixed width computes auto as zero. See attached test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61421</commentid>
    <comment_count>1</comment_count>
      <attachid>17321</attachid>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2007-11-16 14:25:46 -0800</bug_when>
    <thetext>Created attachment 17321
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64232</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-12-14 18:31:11 -0800</bug_when>
    <thetext>This is tricky, since animation happens on RenderStyles, so a layout would actually be required in order to determine what the auto width value at the destination is going to be.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71282</commentid>
    <comment_count>3</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2008-02-20 13:15:10 -0800</bug_when>
    <thetext>Adding Radar I filed a while back.
&lt;rdar://problem/5639997&gt; transition fails when animating between different size units (e.g. px and %)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71285</commentid>
    <comment_count>4</comment_count>
      <attachid>19236</attachid>
    <who name="James Craig">jcraig</who>
    <bug_when>2008-02-20 13:19:01 -0800</bug_when>
    <thetext>Created attachment 19236
Test case from related Radar, includes both % and auto widths.

Adding test case from related Radar, includes both % and auto widths.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78913</commentid>
    <comment_count>5</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-04-25 08:40:06 -0700</bug_when>
    <thetext>*** Bug 18726 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105097</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2009-01-09 17:44:21 -0800</bug_when>
    <thetext>&lt;rdar://problem/5639997&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111467</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2009-02-27 10:29:14 -0800</bug_when>
    <thetext>Comment from Dave Hyatt on the w3-style list:

This is right.  In WebKit, we transition on the computed value of a property (not the specified value or used value).  Note that there have been requests to transition on the used value instead, the most obvious example being wanting to transition from, e.g., width:100% to width:50px.   If you transition on the computed value, then it&apos;s impossible to run an animation from width:auto to width:50px or from width:50% to width:80px, etc.

The problem with transitioning on the used value, though, is it can change when your style hasn&apos;t.... if you resize a window that contains a width:auto or width:100% block for example.  Obviously you don&apos;t want to run a transition in that case.

My own preference would be (for simplicity) to just stick with transitioning on the computed value and to just say &quot;Tough&quot; to people who want to animate width this way, but maybe others disagree.  We continue to get bugs in WebKit from confused people trying to animate auto widths to fixed values (or percents to fixed values) and not understanding why it doesn&apos;t work.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167110</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Kozakewich">mkozakewich</who>
    <bug_when>2009-11-29 15:03:26 -0800</bug_when>
    <thetext>*** Bug 31957 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178379</commentid>
    <comment_count>9</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-01-07 14:13:47 -0800</bug_when>
    <thetext>How about we animate on the used value but only when the computed value changes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178395</commentid>
    <comment_count>10</comment_count>
    <who name="Faruk Ates">farukates</who>
    <bug_when>2010-01-07 14:53:11 -0800</bug_when>
    <thetext>Isn&apos;t the computed value internally kept as a pixel value no matter what the unit is? Wouldn&apos;t that mean that a change from width:80px to width:auto could do a non-transitioned lookup to see what pixel value &quot;auto&quot; currently computes to, and transition to that?

I&apos;m probably not understanding it, but it seems weird that every Javascript library in the world that does this has it figured out, but a hardware accelerated implementation can&apos;t?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182824</commentid>
    <comment_count>11</comment_count>
    <who name="Sidney San Martín">s+webkit</who>
    <bug_when>2010-01-20 08:58:29 -0800</bug_when>
    <thetext>&gt; My own preference would be (for simplicity) to just stick with transitioning on
the computed value and to just say &quot;Tough&quot; to people who want to animate width
this way, but maybe others disagree.

Many use cases for CSS transitions and animations include starting and ending at a computed value — showing and hiding content is a huge one.

Also, treating computed values as zero is never going to be the right behavior. If this isn&apos;t going to be fixed, then trying to animate a computed property should kill the animation entirely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182838</commentid>
    <comment_count>12</comment_count>
    <who name="Faruk Ates">farukates</who>
    <bug_when>2010-01-20 09:45:47 -0800</bug_when>
    <thetext>I think not fixing this bug would be a grave mistake; this is the #1 use case for animation libraries used on the Web today, and thus, the #1 use case for the CSS Transitions implementation. And it is broken in CSS Transitions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>285739</commentid>
    <comment_count>13</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2010-09-27 14:17:09 -0700</bug_when>
    <thetext>Dave Hyatt and I talked about how we might fix this. We&apos;d have to do a layout at the start of the animation to compute the end state, but this might not work in some cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315797</commentid>
    <comment_count>14</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2010-12-01 12:08:20 -0800</bug_when>
    <thetext>*** Bug 35816 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>332882</commentid>
    <comment_count>15</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-11 20:13:01 -0800</bug_when>
    <thetext>*** Bug 52245 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>357165</commentid>
    <comment_count>16</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-02-24 10:59:12 -0800</bug_when>
    <thetext>*** Bug 55137 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>393672</commentid>
    <comment_count>17</comment_count>
    <who name="Sam Tsai">samtsai</who>
    <bug_when>2011-04-27 11:15:48 -0700</bug_when>
    <thetext>Has there been any progress on this bug? Or are there alternate solutions that we could work towards?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>441791</commentid>
    <comment_count>18</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-07-25 12:16:03 -0700</bug_when>
    <thetext>*** Bug 65067 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>921806</commentid>
    <comment_count>19</comment_count>
    <who name="Nikita Vasilyev">me</who>
    <bug_when>2013-08-27 20:12:20 -0700</bug_when>
    <thetext>*** Bug 113871 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1189590</commentid>
    <comment_count>20</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2016-05-02 18:00:48 -0700</bug_when>
    <thetext>The CSS WG has resolved that transitions don&apos;t run to/from auto values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1287750</commentid>
    <comment_count>21</comment_count>
    <who name="Joe Pea">joe</who>
    <bug_when>2017-03-14 12:59:03 -0700</bug_when>
    <thetext>This resolution is very frustrating.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1287751</commentid>
    <comment_count>22</comment_count>
    <who name="Joe Pea">joe</who>
    <bug_when>2017-03-14 12:59:57 -0700</bug_when>
    <thetext>The web keeps disappointing. Are you browser devs really okay with that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1287770</commentid>
    <comment_count>23</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-03-14 13:35:42 -0700</bug_when>
    <thetext>(In reply to comment #22)
&gt; The web keeps disappointing. Are you browser devs really okay with that?

Please bring this up on www-style if you think it&apos;s important.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>17321</attachid>
            <date>2007-11-16 14:25:46 -0800</date>
            <delta_ts>2007-11-16 14:25:46 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>test-width.html</filename>
            <type>text/html</type>
            <size>271</size>
            <attacher name="Timothy Hatcher">timothy</attacher>
            
              <data encoding="base64">PHN0eWxlPgouYmFzZSB7Cglib3JkZXI6IDFweCBzb2xpZCByZWQ7Cgktd2Via2l0LXRyYW5zaXRp
b246IHdpZHRoIDFzIGVhc2UtaW4tb3V0Owp9Cgoub25lIHsKCXdpZHRoOiBhdXRvOwp9CgoudHdv
IHsKCXdpZHRoOiAyMDBweDsKfQo8L3N0eWxlPgo8ZGl2IGNsYXNzPSJiYXNlIG9uZSIgb25jbGlj
az0idGhpcy5jbGFzc05hbWUgPSAnYmFzZSB0d28nIj5DbGljayBtZS4gVGhpcyBib3ggc2hvdWxk
IHNocmluayB0byAyMDBweCwgbm90IGdyb3cgZnJvbSAwcHguPC9kaXY+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>19236</attachid>
            <date>2008-02-20 13:19:01 -0800</date>
            <delta_ts>2008-02-20 13:19:01 -0800</delta_ts>
            <desc>Test case from related Radar, includes both % and auto widths.</desc>
            <filename>MixedUnitAnim.html</filename>
            <type>text/html</type>
            <size>881</size>
            <attacher name="James Craig">jcraig</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjEvL0VOIgoJImh0dHA6
Ly93d3cudzMub3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