<?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>227576</bug_id>
          
          <creation_ts>2021-07-01 02:51:32 -0700</creation_ts>
          <short_desc>Tiled layer flashing during animation</short_desc>
          <delta_ts>2021-07-06 20:53:20 -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>Compositing</component>
          <version>Safari 14</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 11</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="bdc">ben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>graouts</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1774051</commentid>
    <comment_count>0</comment_count>
    <who name="bdc">ben</who>
    <bug_when>2021-07-01 02:51:32 -0700</bug_when>
    <thetext>The background of the top bar on the following test page should always stay yellow, yet the black background flashes on every animation iteration:
http://sharedfil.es/M97qw2Khn.html

This bug only happens in Safari (macOS, iOS and iPadOS), and it&apos;s apparently caused by the linear gradient. If you replace the gradient by a simple background:yellow, the bug doesn&apos;t occur. It&apos;s also worth noting the bug only happens when the viewport is fairly large (I don&apos;t have an exact number but I&apos;d say &gt; 1000px on macOS, and only in landscape mode on iOS).

I recently stumbled upon similar bugs with different use cases, all of them being caused by a background gradient. Disabling the gradients always fixes the bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774074</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-07-01 04:38:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/80017451&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774126</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-07-01 08:37:16 -0700</bug_when>
    <thetext>Tiled layer flashes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774172</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-07-01 11:12:18 -0700</bug_when>
    <thetext>&gt; If you replace the gradient by a simple background:yellow

Because color backgrounds fall into a different compositing code path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774803</commentid>
    <comment_count>4</comment_count>
      <attachid>432883</attachid>
    <who name="bdc">ben</who>
    <bug_when>2021-07-05 07:20:52 -0700</bug_when>
    <thetext>Created attachment 432883
Test case

Here&apos;s another, simplified test case. This seems like a pretty critical bug to me as Safari simply won&apos;t animate anything that has a background-image on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775190</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-07-06 20:49:24 -0700</bug_when>
    <thetext>That last one is different. I moved it to bug 227733.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775194</commentid>
    <comment_count>6</comment_count>
      <attachid>433004</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-07-06 20:53:20 -0700</bug_when>
    <thetext>Created attachment 433004
Test case

Test case shows missing tiles when the animation resets (making it &apos;alternate&apos; fixes the bug).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>432883</attachid>
            <date>2021-07-05 07:20:52 -0700</date>
            <delta_ts>2021-07-06 20:51:32 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>352</size>
            <attacher name="bdc">ben</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPG1ldGEgY2hhcnNldD0idXRmLTgiPgo8
bWV0YSBuYW1lPSJ2aWV3cG9ydCIgY29udGVudD0iaW5pdGlhbC1zY2FsZT0xLCB3aWR0aD1kZXZp
Y2Utd2lkdGgiPgo8dGl0bGU+RXhhbXBsZTwvdGl0bGU+Cgo8c3R5bGU+CiAgQGtleWZyYW1lcyBl
eGFtcGxlIHsKICAgIDAlIHsKICAgICAgdHJhbnNmb3JtOiBzY2FsZSgwKTsKICAgIH0KICB9CiAg
ZGl2IHsKICAgIGhlaWdodDogMTAwcHg7CiAgICBiYWNrZ3JvdW5kOiBsaW5lYXItZ3JhZGllbnQo
YmxhY2ssIGJsYWNrKTsKICAgIGFuaW1hdGlvbjogZXhhbXBsZSA1czsKICB9Cjwvc3R5bGU+Cgo8
ZGl2PjwvZGl2Pg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>433004</attachid>
            <date>2021-07-06 20:53:20 -0700</date>
            <delta_ts>2021-07-06 20:53:20 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>animated-bar.html</filename>
            <type>text/html</type>
            <size>508</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPG1ldGEgY2hhcnNldD0idXRmLTgiPgo8
bWV0YSBuYW1lPSJ2aWV3cG9ydCIgY29udGVudD0iaW5pdGlhbC1zY2FsZT0xLCB3aWR0aD1kZXZp
Y2Utd2lkdGgiPgo8dGl0bGU+VGVzdDwvdGl0bGU+Cgo8c3R5bGU+CiAgQGtleWZyYW1lcyBzbGlk
ZSB7CiAgICAwJSB7CiAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlKC01MCUpOwogICAgfQogIH0K
ICBib2R5IHsKICAgIG1hcmdpbjogMDsKICB9CiAgI291dGVyIHsKICAgIG92ZXJmbG93OiBoaWRk
ZW47CiAgICBiYWNrZ3JvdW5kOiBibGFjazsKICB9CiAgI2lubmVyIHsKICAgIHdpZHRoOiAyMDAl
OwogICAgaGVpZ2h0OiAxMDBweDsKICAgIGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCh5ZWxs
b3csIHllbGxvdyk7CiAgICBhbmltYXRpb246IHNsaWRlIDJzIGluZmluaXRlOwogIH0KPC9zdHls
ZT4KCjxkaXYgaWQ9Im91dGVyIj4KICA8ZGl2IGlkPSJpbm5lciI+PC9kaXY+CjwvZGl2Pg==
</data>

          </attachment>
      

    </bug>

</bugzilla>