<?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>181048</bug_id>
          
          <creation_ts>2017-12-20 11:05:52 -0800</creation_ts>
          <short_desc>Background image with background-attachment: local inside -webkit-overflow-scrolling: touch fails to display until viewport zoom</short_desc>
          <delta_ts>2022-01-07 09:46:15 -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>CSS</component>
          <version>Safari 11</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 11</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=219324</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="Anton Andreasson">anton.andreasson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bramus</cc>
    
    <cc>jond</cc>
    
    <cc>me</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>1383747</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Andreasson">anton.andreasson</who>
    <bug_when>2017-12-20 11:05:52 -0800</bug_when>
    <thetext>Example url:
https://tickster.github.io/styleguide/#cropped

When horizontal scrolling in the &quot;cropped&quot; element there, the shadow to the right should disappear when you reach the end. Likewise, a shadow on the left side should appear as you start scrolling. This only works if pinching in and out. It also works as intended in the Firefox, the new version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1383749</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-12-20 11:14:00 -0800</bug_when>
    <thetext>What Safari version are you testing it? It works OK for me in Safari Tech Preview 45.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1383752</commentid>
    <comment_count>2</comment_count>
    <who name="Anton Andreasson">anton.andreasson</who>
    <bug_when>2017-12-20 11:18:42 -0800</bug_when>
    <thetext>I&apos;m on iOS 11, maybe I forgot to say(?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1383764</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-12-20 11:33:27 -0800</bug_when>
    <thetext>Ah, I see. This is more about -webkit-overflow-scrolling: touch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1383765</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-12-20 11:34:06 -0800</bug_when>
    <thetext>&lt;rdar://problem/36160662&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1399456</commentid>
    <comment_count>5</comment_count>
    <who name="Anton Andreasson">anton.andreasson</who>
    <bug_when>2018-02-15 07:46:18 -0800</bug_when>
    <thetext>Just wanted to add that the url above has changed. 

New url:
https://tickster.github.io/styleguide/components.html#cropped</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1573244</commentid>
    <comment_count>6</comment_count>
    <who name="Jayden Seric">me</who>
    <bug_when>2019-09-23 00:20:44 -0700</bug_when>
    <thetext>I&apos;ve discovered that updating a CSS variable on a -webkit-overflow-scrolling: touch element when it’s scrolled causes it to repaint correctly. I use React hooks, but here is a vanilla example:

if (CSS.supports(&apos;-webkit-overflow-scrolling: touch&apos;)) {
  const scroller = document.getElementById(&apos;scroller&apos;)
  scroller.addEventListener(&apos;scroll&apos;, () =&gt; {
    scroller.style.setProperty(&apos;--force-paint&apos;, Date.now())
  })
}

This is a very inconvenient bug!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1801338</commentid>
    <comment_count>7</comment_count>
    <who name="Bramus">bramus</who>
    <bug_when>2021-10-06 14:07:34 -0700</bug_when>
    <thetext>The workaround listed in #c6 no longer seems to work on iOS15.

Before iOS15, attaching a dummy animation to the scroller also worked (see https://brm.us/scroll-shadows#note-mobilesafari for details). This is no longer the case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1828944</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-01-07 09:46:15 -0800</bug_when>
    <thetext>Probably fixed by bug 219324.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>