<?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>230438</bug_id>
          
          <creation_ts>2021-09-17 18:29:03 -0700</creation_ts>
          <short_desc>WKWebview sticky element with overflow scroll/auto causes elements to disappear during overscroll</short_desc>
          <delta_ts>2021-09-30 05:05:35 -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>CSS</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Pete Lada">pklada</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>kevin_neal</cc>
    
    <cc>knneth+webkit</cc>
    
    <cc>mrobinson</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1794724</commentid>
    <comment_count>0</comment_count>
    <who name="Pete Lada">pklada</who>
    <bug_when>2021-09-17 18:29:03 -0700</bug_when>
    <thetext>This doesn&apos;t seem to happen in mobile safari, only reproducible in a WKWebView. If I have a sticky element which is either itself set to overflow:scroll/auto or has a child with the same overflow rules, any child of those elements disappears during overscroll. They seem to disappear at the same moment that their container would otherwise have scrolled out of view (but is still visible due to being sticky). Note this doesn&apos;t happen with position: fixed elements, only position: sticky. 

Here is a video of the behavior: https://share.getcloudapp.com/jku40OLl

The markup is relatively simple. A sticky positioned element, inside a div with overflow set to &quot;auto&quot; and white-space to &quot;nowrap&quot; so that the container is forced to scroll. Note that if the content doesn&apos;t actually force a scroll the bug doesn&apos;t seem to occur. 

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1795129</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-09-20 09:59:56 -0700</bug_when>
    <thetext>Could you please attach an HTML file with the markup that reproduces this? Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1795240</commentid>
    <comment_count>2</comment_count>
      <attachid>438720</attachid>
    <who name="Pete Lada">pklada</who>
    <bug_when>2021-09-20 13:31:20 -0700</bug_when>
    <thetext>Created attachment 438720
Example html which repros the issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1795245</commentid>
    <comment_count>3</comment_count>
    <who name="Pete Lada">pklada</who>
    <bug_when>2021-09-20 13:35:40 -0700</bug_when>
    <thetext>Video of repro w/ attached markup https://share.getcloudapp.com/GGupbKPE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1795635</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-21 10:28:27 -0700</bug_when>
    <thetext>&lt;rdar://problem/83357927&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>438720</attachid>
            <date>2021-09-20 13:31:20 -0700</date>
            <delta_ts>2021-09-20 13:31:20 -0700</delta_ts>
            <desc>Example html which repros the issue</desc>
            <filename>sticky-disappearing-element-bug.html</filename>
            <type>text/html</type>
            <size>438</size>
            <attacher name="Pete Lada">pklada</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxib2R5PgogICAgPGRpdiBzdHlsZT0iaGVpZ2h0OiAy
MDAwcHgiPgogICAgICA8ZGl2IHN0eWxlPSJoZWlnaHQ6IDEwMDBweCI+PC9kaXY+CiAgICAgIDxk
aXYKICAgICAgICBzdHlsZT0icG9zaXRpb246IHN0aWNreTsgYm90dG9tOiAwOyBiYWNrZ3JvdW5k
LWNvbG9yOiByZWQ7IGNvbG9yOiB3aGl0ZSIKICAgICAgPgogICAgICAgIDxkaXYgc3R5bGU9Im92
ZXJmbG93OiBhdXRvOyB3aGl0ZS1zcGFjZTogbm93cmFwIj4KICAgICAgICAgIFNvbWUgcmVhbGx5
IHJlYWxseSBsb25nIHRleHQgdGhhdCBjYXVzZXMgYW4gb3ZlcmZsb3cgYW5kIHNvbWV0aGluZwog
ICAgICAgICAgdGhhdCBtYXkgb3IgbWF5IG5vdCBkaXNhcHBlYXIKICAgICAgICA8L2Rpdj4KICAg
ICAgPC9kaXY+CiAgICA8L2Rpdj4KICA8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>