<?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>245179</bug_id>
          
          <creation_ts>2022-09-14 07:48:35 -0700</creation_ts>
          <short_desc>getKeyframes() returns equal &quot;from&quot; and &quot;to&quot; values for a &quot;width&quot; transition</short_desc>
          <delta_ts>2022-09-23 10:10:26 -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>Animations</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=23775</see_also>
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antoine Quint">graouts</reporter>
          <assigned_to name="Antoine Quint">graouts</assigned_to>
          <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>koivisto</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1898460</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-09-14 07:48:35 -0700</bug_when>
    <thetext>Starting a &quot;width&quot; transition for a simple &lt;div&gt; will return the same values for &quot;from&quot; and &quot;to&quot; when getKeyframes() is called. This cannot be correct since a transition cannot have the same from and to values. Digging into this, this is about this code in ComputedStyleExtractor::valueForPropertyInStyle():

        case CSSPropertyWidth:
            if (renderer &amp;&amp; !renderer-&gt;isRenderOrLegacyRenderSVGModelObject()) {
                // According to http://www.w3.org/TR/CSS2/visudet.html#the-width-property,
                // the &quot;width&quot; property does not apply for non-replaced inline elements.
                if (!isNonReplacedInline(*renderer))
                    return zoomAdjustedPixelValue(sizingBox(*renderer).width(), style);
            }
            return zoomAdjustedPixelValueForLength(style.width(), style);

In this case we end up calling zoomAdjustedPixelValue(sizingBox(*renderer).width(), style) which simply does not use the values provided in the RenderStyle for the keyframe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898461</commentid>
    <comment_count>1</comment_count>
      <attachid>462334</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-09-14 07:50:13 -0700</bug_when>
    <thetext>Created attachment 462334
testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898478</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-09-14 09:09:25 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/4350</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900135</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-21 07:49:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/100223910&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900585</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-09-23 03:13:01 -0700</bug_when>
    <thetext>I believe this got fixed along with bug 23924. Will add a new test though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900672</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-09-23 10:10:24 -0700</bug_when>
    <thetext>Committed 254793@main (1ed5a302e8a0): &lt;https://commits.webkit.org/254793@main&gt;

Reviewed commits have been landed. Closing PR #4350 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>462334</attachid>
            <date>2022-09-14 07:50:13 -0700</date>
            <delta_ts>2022-09-14 07:50:13 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>bug-245179.html</filename>
            <type>text/html</type>
            <size>815</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgoJPHRpdGxlPlRlc3QgZm9yIGJ1ZyAyNDUxNzk8L3RpdGxlPgoJPHN0eWxl
PgoJCQpkaXYgewoJcG9zaXRpb246IGFic29sdXRlOwoJdG9wOiAxMDBweDsKCWxlZnQ6IDEwMHB4
OwoJd2lkdGg6IDEwMHB4OwoJaGVpZ2h0OiAxMDBweDsKCgliYWNrZ3JvdW5kLWNvbG9yOiBibGFj
azsKICAgIHRyYW5zaXRpb246IHdpZHRoIDFzIGxpbmVhcjsKfQoKZGl2LnJldGFyZ2V0ZWQgewoJ
d2lkdGggOiAyMDBweDsKfQoKCTwvc3R5bGU+ICAKPC9oZWFkPgoKPGJvZHk+CjxkaXY+PC9kaXY+
CjxzY3JpcHQ+Cgpjb25zdCB0YXJnZXQgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCJkaXYiKTsK
CnRhcmdldC5hZGRFdmVudExpc3RlbmVyKCJ0cmFuc2l0aW9uc3RhcnQiLCBldmVudCA9PiB7CiAg
ICBjb25zdCBwcm9wZXJ0eSA9IGV2ZW50LnByb3BlcnR5TmFtZTsKICAgIGNvbnN0IGVmZmVjdCA9
IHRhcmdldC5nZXRBbmltYXRpb25zKClbMF0uZWZmZWN0OwogICAgY29uc3Qga2V5ZnJhbWVzID0g
ZWZmZWN0LmdldEtleWZyYW1lcygpOwogICAgY29uc29sZS5sb2coYFRyYW5zaXRpb25pbmcgJHtw
cm9wZXJ0eX0gZnJvbSAke2tleWZyYW1lc1swXVtwcm9wZXJ0eV19IHRvICR7a2V5ZnJhbWVzWzFd
W3Byb3BlcnR5XX0gZm9yICR7KGVmZmVjdC5nZXRDb21wdXRlZFRpbWluZygpLmR1cmF0aW9uIC8g
MTAwMCkudG9GaXhlZCgxKX1zYCk7Cn0sIHsgb25jZTogdHJ1ZSB9KTsKCnNldFRpbWVvdXQoKCkg
PT4gdGFyZ2V0LmNsYXNzTGlzdC50b2dnbGUoInJldGFyZ2V0ZWQiKSk7CiAgICAKPC9zY3JpcHQ+
CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>