<?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>106632</bug_id>
          
          <creation_ts>2013-01-10 21:42:05 -0800</creation_ts>
          <short_desc>getComputedStyle on animation from pixels to percent returns null or asserts</short_desc>
          <delta_ts>2022-08-30 02:23:06 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>29084</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Elliott Sprehn">esprehn</reporter>
          <assigned_to name="Mike Lawther">mikelawther</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>dino</cc>
    
    <cc>eric</cc>
    
    <cc>esprehn</cc>
    
    <cc>johnlarsene</cc>
    
    <cc>menard</cc>
    
    <cc>mikelawther</cc>
    
    <cc>mithro</cc>
    
    <cc>payoroj929</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tabatkins</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>804953</commentid>
    <comment_count>0</comment_count>
      <attachid>182263</attachid>
    <who name="Elliott Sprehn">esprehn</who>
    <bug_when>2013-01-10 21:42:05 -0800</bug_when>
    <thetext>Created attachment 182263
Reduction

If you&apos;re transitioning on a length property from a pixel value to a percent and you call getComputedStyle to check the current value we return null because you end up in CSSPrimitiveValue::CSSPrimitiveValue(const Length&amp; length) with the type Calculated which hits an ASSERT_NOT_REACHED();

In a release build we return null because of error handling in CSSComputedStyleDeclaration.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>805557</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins">tabatkins</who>
    <bug_when>2013-01-11 13:17:41 -0800</bug_when>
    <thetext>+ccing Mike Lawther, as he&apos;s the calc() author.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>830654</commentid>
    <comment_count>2</comment_count>
    <who name="Tim &apos;mithro&apos; Ansell">mithro</who>
    <bug_when>2013-02-12 00:38:01 -0800</bug_when>
    <thetext>This appears to actually be related to Bug 29084, top/bottom/left/right all seem to work differently and hence behave as this bug reports. Width works as expected by this test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>839187</commentid>
    <comment_count>3</comment_count>
    <who name="Tim &apos;mithro&apos; Ansell">mithro</who>
    <bug_when>2013-02-21 20:48:55 -0800</bug_when>
    <thetext>This issue is fixed by the patch found in Bug 29084.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894753</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-30 02:23:06 -0700</bug_when>
    <thetext>I am not able to reproduce this bug in Safari 15.6.1 and it shows as intended all values (though it shows animation is 60 fps compared to other browser, which show 120 fps) but since all other browsers (Chrome Canary 107 and Firefox Nightly 106) also work. I am going to mark this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>182263</attachid>
            <date>2013-01-10 21:42:05 -0800</date>
            <delta_ts>2013-01-10 21:42:05 -0800</delta_ts>
            <desc>Reduction</desc>
            <filename>Reduction.html</filename>
            <type>text/html</type>
            <size>1831</size>
            <attacher name="Elliott Sprehn">esprehn</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CgkKPHN0eWxlPgogICAgZGl2IHsKICAgICAgICB3aWR0aDogMTUwcHg7
CiAgICAgICAgaGVpZ2h0OiAxNTBweDsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAg
ICAgYm9yZGVyOiAxcHggc29saWQgcmVkOwogICAgfQoKICAgIHNwYW4gewogICAgICAgIHBvc2l0
aW9uOiBhYnNvbHV0ZTsKICAgICAgICAvKiBNdXN0IHN0YXJ0IGZyb20gbm9uLXplcm8uICovCiAg
ICAgICAgdG9wOiAxMHB4OwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgd2lkdGg6IDIwcHg7CiAg
ICAgICAgaGVpZ2h0OiAyMHB4OwogICAgICAgIGJhY2tncm91bmQ6IHJlZDsKICAgIH0KCiAgICAu
bW92ZSBzcGFuIHsKICAgICAgICAvKiBNdXN0IHRyYW5zaXRpb24gdG8gYSBwZXJjZW50LiAqLwog
ICAgICAgIHRvcDogMTAwJTsKICAgICAgICAtd2Via2l0LXRyYW5zaXRpb246IHRvcCAxcyBsaW5l
YXIgMC4wMXM7CiAgICAgICAgLW1vei10cmFuc2l0aW9uOiB0b3AgMXMgbGluZWFyIDAuMDFzOwog
ICAgICAgIHRyYW5zaXRpb246IHRvcCAxcyBsaW5lYXIgMC4wMXM7CiAgICB9Cjwvc3R5bGU+Cgo8
c2NyaXB0PgogICAgb25sb2FkID0gZnVuY3Rpb24oKSB7CiAgICAgICAgdmFyIGRpdiA9IGRvY3Vt
ZW50LnF1ZXJ5U2VsZWN0b3IoJ2RpdicpOwogICAgICAgIHZhciBvbCA9IGRvY3VtZW50LnF1ZXJ5
U2VsZWN0b3IoJ29sJyk7CiAgICAgICAgZGl2LmNsYXNzTmFtZSA9ICdtb3ZlJzsKCiAgICAgICAg
dmFyIG9sZFZhbHVlOwoKICAgICAgICB2YXIgcmVxdWVzdEFuaW1hdGlvb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