<?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>181709</bug_id>
          
          <creation_ts>2018-01-16 17:02:24 -0800</creation_ts>
          <short_desc>Rendering errors when using CSS transforms (flickering and missing content)</short_desc>
          <delta_ts>2026-01-12 09:02:19 -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>Layout and Rendering</component>
          <version>Other</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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="Steffen Deusch">steffen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>graouts</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wouter</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1389796</commentid>
    <comment_count>0</comment_count>
    <who name="Steffen Deusch">steffen</who>
    <bug_when>2018-01-16 17:02:24 -0800</bug_when>
    <thetext>Hello everyone,
this is my first bug report for WebKit, so it&apos;s maybe not perfect yet and I&apos;m sorry about that.

I&apos;m posting this based on my issue in the WPEWebKit repo on GitHub: https://github.com/WebPlatformForEmbedded/WPEWebKit/issues/434
As you can read there, I&apos;ve noticed some strange rendering errors when using CSS transforms to create scrolling effects.
In WPE the content just disappears after scrolling for a while. When there is a repaint (I guess), e.g. because some other element on the page changes, it appears again.
The hardware used for testing this was a Raspberry Pi 3 and a video is available here: https://s3.eu-central-1.amazonaws.com/steffend/public/wpe-test-rpi3/rss-scroller/vid.mp4

First I thought that this is a bug with WPE only, but then I noticed that another example of a scrolling table has a similar issue: https://github.com/WebPlatformForEmbedded/WPEWebKit/issues/434#issuecomment-358153090
While I&apos;ve got the same &quot;content-disappearing&quot; problem in in WPE, I also noticed flickering issues on Safari 11.0.2, Safari Tech Preview 47, WebKit Nightly and Mobile Safari, as you can see in the attached videos on GitHub.
I&apos;m not quite sure if the flickering issue is connected to the disappearing problem, but sometimes I see some form of the latter one on iOS too, although I couldn&apos;t reliably reproduce it.

In Chrome/Chromium these examples all work as expected and as I&apos;m using these techniques in production I&apos;m currently forced to use Chromium based clients instead of e.g. WPE as this is quite a critical issue in my opinion.

Versions:
- all WPE versions I tested, master and stable branches, buildroot and yocto builds
- flickering in all WebKit-based browsers I tested (iOS, macOS)

Thanks for any help,
Steffen Deusch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389797</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-01-16 17:07:09 -0800</bug_when>
    <thetext>I can reproduce the issue with https://s3.eu-central-1.amazonaws.com/steffend/public/webkitbug/scrolling.html on macOS. I&apos;ll take a look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389798</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-01-16 17:11:31 -0800</bug_when>
    <thetext>&lt;rdar://problem/36564618&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389799</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-01-16 17:15:45 -0800</bug_when>
    <thetext>The flash happens when the animation wraps around from -50% to 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389801</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-01-16 17:15:59 -0800</bug_when>
    <thetext>&lt;rdar://problem/36564775&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389805</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-01-16 17:34:45 -0800</bug_when>
    <thetext>This happens because (on macOS/iOS at least), the tiles are being moved around by CoreAnimation in another thread/process; the web content process is continually evaluating tile coverage, but doesn&apos;t do a  good job when the animation loops around and the position has large discontiguous jumps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389809</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-01-16 17:39:06 -0800</bug_when>
    <thetext>We need to be able to ask an animation &quot;where will you be in 16ms from now&quot;, including looping etc, to get good predictive tile coverage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389973</commentid>
    <comment_count>7</comment_count>
    <who name="Steffen Deusch">steffen</who>
    <bug_when>2018-01-17 04:57:10 -0800</bug_when>
    <thetext>Okay, this is odd: I just noticed another rendering error using exactly the same example page:
https://s3.eu-central-1.amazonaws.com/steffend/public/webkitbug/somethingswrong.mp4

This is especially strange because this only occurred once while testing yesterday, but I couldn&apos;t reproduce it. Now, I face it on every page load without changing anything at all.

Also it seems like the animation speed is somehow random:
https://s3.eu-central-1.amazonaws.com/steffend/public/webkitbug/speed.mp4

Mobile Safari, iOS 11.2.2.
Should I open another bug for this issue? Also it looks like the WPE bug I am experiencing isn&apos;t connected to CoreAnimation, so that would be another issue too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390051</commentid>
    <comment_count>8</comment_count>
    <who name="Steffen Deusch">steffen</who>
    <bug_when>2018-01-17 09:48:11 -0800</bug_when>
    <thetext>WPE is affected be the &quot;animation-too-slow&quot; bug too (https://bugs.webkit.org/show_bug.cgi?id=181709#c7). I just experienced it using https://s3.eu-central-1.amazonaws.com/steffend/public/webkitbug/scrollframe.html

(I also noticed overall bad performance of WPE in iframes. Does anybody know why this is the case? https://github.com/WebPlatformForEmbedded/WPEWebKit/issues/433)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390108</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-01-17 11:14:21 -0800</bug_when>
    <thetext>Please open new bug on the speed issue (we&apos;ve probably not got the final height when we compute the 50% for the animation).

Also open new bugs for issues that are specific to WPE.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>