<?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>280316</bug_id>
          
          <creation_ts>2024-09-24 18:57:37 -0700</creation_ts>
          <short_desc>Excessive repainting when scrolling position:sticky in some configurations</short_desc>
          <delta_ts>2024-11-11 11:52:35 -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>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=281041</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="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>fujii</cc>
    
    <cc>info</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2062922</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2024-09-24 18:57:37 -0700</bug_when>
    <thetext>Scrolling on website for Poor Charlie’s Almanack is incredibly laggy in Safari, works well in Chrome.

Steps To Reproduce:
1. Visit https://www.stripe.press/poor-charlies-almanack/talk-one?progress=0.00%
2. Scroll with trackpad

Results:
Website lags while scrolling, works great in Chrome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2062923</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2024-09-24 18:57:52 -0700</bug_when>
    <thetext>&lt;rdar://120280327&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2062925</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2024-09-24 19:04:51 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/34207</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064001</commentid>
    <comment_count>3</comment_count>
    <who name="David">info</who>
    <bug_when>2024-09-28 07:18:25 -0700</bug_when>
    <thetext>I have the exact same issue with this website : https://staging.geloso.com (which will soon become simply https://geloso.com, so if you see this in the future, it might be flipped to live). 

The sticky panels make Safari want to explode, whereas there&apos;s no difference in performance wether they&apos;re sticky or not in Chrome or Firefox, so I&apos;ll have to deactivate them until the solution is released.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2065910</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2024-10-07 10:58:53 -0700</bug_when>
    <thetext>I tested, and https://staging.geloso.com/ seems OK even without the fix; I don&apos;t see excessive repainting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2066078</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-10-07 19:50:22 -0700</bug_when>
    <thetext>Committed 284802@main (6a6822efc75a): &lt;https://commits.webkit.org/284802@main&gt;

Reviewed commits have been landed. Closing PR #34207 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2068945</commentid>
    <comment_count>6</comment_count>
    <who name="David">info</who>
    <bug_when>2024-10-17 16:53:00 -0700</bug_when>
    <thetext>Mm might be another issue, but there&apos;s definitely a huge difference. For example, testing in Safari Tech Preview: https://youtu.be/qB1TwNaCjLM

The framerate visibly drops, not only that but the rendering seems to stutter and hit a low-enough point that the GPU needs to &quot;catch up&quot; and repaint multiple frames at once.

Removing the position sticky helps a lot. The framerate now doesn&apos;t seem to drop below 25 (which is better than the lowest around 10) but the stuttering is now also gone, probably because the GPU isn&apos;t overloaded and does&apos;t need to catch up.

Granted it&apos;s a pretty complicated website with lots of animations and smooth scrolling, but it runs perfectly in both Chrome and Firefox, wether position sticky is there or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2074332</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-11-11 11:52:35 -0800</bug_when>
    <thetext>Committed 283286.471@safari-7620-branch (374b5e1de0e5): &lt;https://commits.webkit.org/283286.471@safari-7620-branch&gt;

Reviewed commits have been landed. Closing PR #2234 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>