<?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>211755</bug_id>
          
          <creation_ts>2020-05-11 17:17:49 -0700</creation_ts>
          <short_desc>Bad animations with transform-box</short_desc>
          <delta_ts>2024-01-22 16:25:23 -0800</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>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=211927</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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>graouts</cc>
    
    <cc>krit</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1651530</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-05-11 17:17:49 -0700</bug_when>
    <thetext>https://codepen.io/phebert/pen/oNXRPNK shows some issues like wrong animation origins on the swinging ball, and some weird flickers with the ball at the end</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1651531</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-05-11 17:18:21 -0700</bug_when>
    <thetext>Linked from https://css-tricks.com/css-animation-timelines-building-a-rube-goldberg-machine/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1651532</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-05-11 17:20:04 -0700</bug_when>
    <thetext>These are animations on SVG elements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1651667</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2020-05-12 02:22:05 -0700</bug_when>
    <thetext>Does not seem to be related to Web Animations, we get the same behavior using the legacy engine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1651668</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-05-12 02:22:33 -0700</bug_when>
    <thetext>&lt;rdar://problem/63127944&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1652393</commentid>
    <comment_count>5</comment_count>
      <attachid>399300</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2020-05-13 14:17:31 -0700</bug_when>
    <thetext>Created attachment 399300
reduced test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1652762</commentid>
    <comment_count>6</comment_count>
      <attachid>399394</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2020-05-14 12:59:58 -0700</bug_when>
    <thetext>Created attachment 399394
More reduced test case

The bug happens because of this CSS setting:

#ball {
    ...
    transform-box: unset;
    ...
}

If it is deleted, the animation works fine. It looks like the initial value of &quot;transform-box&quot; is set to &quot;border-box&quot;. But according to https://drafts.csswg.org/css-transforms/#transform-box it should be &quot;view-box&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1652810</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-05-14 15:07:12 -0700</bug_when>
    <thetext>It&apos;s possible that webkit behavior is correct and the other browsers are wrong; we did do some transform-box stuff not too long ago.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1652835</commentid>
    <comment_count>8</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2020-05-14 15:40:25 -0700</bug_when>
    <thetext>I think &quot;view-box&quot; is more appropriate initial value for SVG elements. The SVG view box represents the coordinate system for the whole SVG. I think it is hard to think of the transform-origin in terms of the &quot;element&quot; coordinates.

I logged https://bugs.webkit.org/show_bug.cgi?id=211927 to track the transform-box initial value issue. I will keep this bug for the flickering at the end of the animation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1652972</commentid>
    <comment_count>9</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2020-05-15 00:59:48 -0700</bug_when>
    <thetext>We should file bugs on Firefox and Chrome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1956646</commentid>
    <comment_count>10</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-19 18:15:22 -0700</bug_when>
    <thetext>I don&apos;t know about the past but using &apos;more reduced testcase&apos;, I think Safari 16.5, Chrome Canary 115 and Firefox Nightly 115 are same (at least I think).

If nothing needed, can we close this now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2006725</commentid>
    <comment_count>11</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2024-01-22 16:25:23 -0800</bug_when>
    <thetext>Closing based on Ahmad&apos;s testing on the &quot;More reduced test case&quot;. Please open a new bug if there is an additional bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>399300</attachid>
            <date>2020-05-13 14:17:31 -0700</date>
            <delta_ts>2020-05-13 14:17:31 -0700</delta_ts>
            <desc>reduced test case</desc>
            <filename>test350.html</filename>
            <type>text/html</type>
            <size>995</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PHN0eWxlIHR5cGU9InRleHQvY3NzIj4KICAgICNCYWxsX2FuZF9TdHJpbmcgewogICAgICAgIHRy
YW5zZm9ybTogcm90YXRlKDMzZGVnKTsKICAgICAgICB0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gMXM7
CiAgICAgICAgdHJhbnNpdGlvbi1kZWxheTogMC41OwogICAgICAgIHRyYW5zaXRpb24tdGltaW5n
LWZ1bmN0aW9uOiBjdWJpYy1iZXppZXIoMC4zNCwgMS41NiwgMC42NCwgMSk7CiAgICAgICAgLyog
VGhpcyBpcyBicm9rZW4gaW4gd2Via2l0IHdpdGhvdXQgdGhlc2UgcnVsZXMgKi8KICAgICAgICB0
cmFuc2Zvcm0tYm94OiB1bnNldDsKICAgICAgICB0cmFuc2Zvcm0tb3JpZ2luOiAxMDAwcHggLTEw
MHB4OwogICAgfQoKICAgIC5nYW1lLW9uICNCYWxsX2FuZF9TdHJpbmcgewogICAgICAgIHRyYW5z
Zm9ybTogcm90YXRlKC0yMGRlZyk7CiAgICB9CgogICAgLmJhbGwgewogICAgICAgIGZpbGw6IGdy
ZWVuOwogICAgfQoKICAgIC5zdHJpbmcgewogICAgICAgIHN0cm9rZTogYmx1ZTsKICAgICAgICBz
dHJva2Utd2lkdGg6IDc7CiAgICAgICAgc3Ryb2tlLW1pdGVybGltaXQ6IDEwOwogICAgfQo8L3N0
eWxlPgo8Ym9keT4KICAgIDxzdmcgdmlld0JveD0iMCAwIDQwMDAgMTAwMCI+CiAgICAgIDxnIGlk
PSJCYWxsX2FuZF9TdHJpbmciPgogICAgICAgIDxsaW5lIGNsYXNzPSJzdHJpbmciIHgxPSIxMDAw
IiB5MT0iNDAwIiB4Mj0iMTAwMCIgeTI9Ii0xMDAiIC8+CiAgICAgICAgPGNpcmNsZSBjbGFzcz0i
YmFsbCIgY3g9IjEwMDAiIGN5PSI0NTUiIHI9IjU1IiAvPgogICAgICA8L2c+CiAgICA8L3N2Zz4K
ICAgIDxzY3JpcHQ+CiAgICAgICAgd2luZG93LmFkZEV2ZW50TGlzdGVuZXIoJ2xvYWQnLCAoZXZl
bnQpID0+IHsKICAgICAgICAgICAgY29uc3Qgc3ZnID0gZG9jdW1lbnQucXVlcnlTZWxlY3Rvcigi
c3ZnIik7CiAgICAgICAgICAgIHN2Zy5jbGFzc0xpc3QuYWRkKCJnYW1lLW9uIik7CiAgICAgICAg
fSk7CiAgICA8L3NjcmlwdD4KPC9ib2R5Pgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>399394</attachid>
            <date>2020-05-14 12:59:58 -0700</date>
            <delta_ts>2020-05-14 12:59:58 -0700</delta_ts>
            <desc>More reduced test case</desc>
            <filename>test350.html</filename>
            <type>text/html</type>
            <size>835</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PHN0eWxlIHR5cGU9InRleHQvY3NzIj4KICAgIHN2ZyB7CiAgICAgICAgd2lkdGg6IDgwMHB4Owog
ICAgICAgIGhlaWdodDogNjAwcHg7CiAgICAgICAgYm9yZGVyOiAycHggc29saWQgYmxhY2s7CiAg
ICB9CgogICAgLmF4aXMgewogICAgICAgIHN0cm9rZTogYmx1ZTsKICAgICAgICBzdHJva2Utd2lk
dGg6IDI7CiAgICAgICAgc3Ryb2tlLW1pdGVybGltaXQ6IDEwOwogICAgfQoKICAgICNiYWxsIHsK
ICAgICAgICB0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gMXM7CiAgICAgICAgdHJhbnNmb3JtLWJveDog
dW5zZXQ7CiAgICAgICAgdHJhbnNmb3JtLW9yaWdpbjogNDAwcHggMTAwcHg7CiAgICAgICAgZmls
bDogZ3JlZW47CiAgICB9CgogICAgLmdhbWUtb24gI2JhbGwgewogICAgICAgIHRyYW5zZm9ybTog
cm90YXRlKC05MGRlZyk7CiAgICB9Cjwvc3R5bGU+Cjxib2R5PgogICAgPHN2Zz4KICAgICAgICA8
bGluZSBjbGFzcz0iYXhpcyIgeDE9IjAiIHkxPSIxMDAiIHgyPSI4MDAiIHkyPSIxMDAiLz4KICAg
ICAgICA8bGluZSBjbGFzcz0iYXhpcyIgeDE9IjQwMCIgeTE9IjAiIHgyPSI0MDAiIHkyPSI2MDAi
Lz4KICAgICAgICA8Y2lyY2xlIGlkPSJiYWxsIiBjeD0iNDAwIiBjeT0iMzAwIiByPSIyMCIgLz4K
ICAgIDwvc3ZnPgogICAgPHNjcmlwdD4KICAgICAgICB3aW5kb3cuYWRkRXZlbnRMaXN0ZW5lcign
bG9hZCcsIChldmVudCkgPT4gewogICAgICAgICAgICBjb25zdCBzdmcgPSBkb2N1bWVudC5xdWVy
eVNlbGVjdG9yKCJzdmciKTsKICAgICAgICAgICAgc3ZnLmNsYXNzTGlzdC5hZGQoImdhbWUtb24i
KTsKICAgICAgICB9KTsKICAgIDwvc2NyaXB0Pgo8L2JvZHk+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>