<?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>238067</bug_id>
          
          <creation_ts>2022-03-17 23:53:21 -0700</creation_ts>
          <short_desc>REGRESSION (iOS 15.4 / r285529): Flicker on CSS transition of opacity and transform</short_desc>
          <delta_ts>2022-03-18 12:11:04 -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>Safari 15</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>237972</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=231358</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=237918</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>em_te</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>graouts</cc>
    
    <cc>kbr</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1852623</commentid>
    <comment_count>0</comment_count>
      <attachid>455068</attachid>
    <who name="">em_te</who>
    <bug_when>2022-03-17 23:53:21 -0700</bug_when>
    <thetext>Created attachment 455068
test case showing flicker

Doing a simple CSS transition shows a flicker on the latest Safari after the iOS 15.4 update.
See test case attached.

The transition is just:

  #box {
    transform: scale(0.3);
    opacity: 0.3;
    transition: transform 0.5s, opacity 1.5s;
  }
  #box:hover {
    opacity: 1;
    transform: scale(1);
  }

Normally the transitions are smooth but now the transitions seem to repeat themselves causing a mismatched flicker.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1852644</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-03-18 01:09:07 -0700</bug_when>
    <thetext>&lt;rdar://problem/90476139&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1852696</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-03-18 06:26:07 -0700</bug_when>
    <thetext>This regressed with r285529, the fix for bug 231358.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1852715</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-03-18 07:48:24 -0700</bug_when>
    <thetext>r285529 did something very stupid in addLeafAnimation(): we would add the animationGroupBeginTime each time this function was called which meant that any time we committed animation on a layer. This was fine as long as there was only one commit per animation. But this also meant that if you had two or more animations running with different durations, such as in the test case, further commits would add an extra 1s to the leaf animation begin time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1852730</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-03-18 08:46:39 -0700</bug_when>
    <thetext>Going to fix this in bug 237972 since it was filed earlier and is the same issue. Thanks a lot for filing this bug with a reduction, this really helped!

*** This bug has been marked as a duplicate of bug 237972 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>455068</attachid>
            <date>2022-03-17 23:53:21 -0700</date>
            <delta_ts>2022-03-17 23:53:21 -0700</delta_ts>
            <desc>test case showing flicker</desc>
            <filename>hover.html</filename>
            <type>text/html</type>
            <size>532</size>
            <attacher>em_te</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgogIDxoZWFkPgogIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBj
b250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsIHVzZXItc2NhbGFibGU9bm8iIC8+CiAgPHN0eWxl
PgogICNib3ggewogICAgd2lkdGg6IDMwMHB4OwogICAgaGVpZ2h0OiAzMDBweDsKICAgIGJhY2tn
cm91bmQtY29sb3I6IGdyYXk7CiAgICB0cmFuc2Zvcm06IHNjYWxlKDAuMyk7CiAgICBvcGFjaXR5
OiAwLjM7CiAgICB0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gMC41cywgb3BhY2l0eSAxLjVzOwogIH0K
ICBpbnB1dDpjaGVja2VkIH4gI2JveCB7CiAgICBvcGFjaXR5OiAxOwogICAgdHJhbnNmb3JtOiBz
Y2FsZSgxKTsKICB9CiAgPC9zdHlsZT4KICA8L2hlYWQ+CiAgPGJvZHk+CiAgICA8aW5wdXQgaWQ9
InRvZ2dsZSIgdHlwZT0iY2hlY2tib3giPjxsYWJlbCBmb3I9InRvZ2dsZSI+dG9nZ2xlIGNzcyAo
c2NhbGUgMC41cywgb3BhY2l0eSAxLjVzKTwvbGFiZWw+CiAgICA8ZGl2IGlkPSJib3giPjwvZGl2
PgogIDwvYm9keT4KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>