<?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>172875</bug_id>
          
          <creation_ts>2017-06-02 15:06:32 -0700</creation_ts>
          <short_desc>[iOS] -webkit-overflow-scrolling: touch causes content to disappear</short_desc>
          <delta_ts>2019-09-28 04:02:41 -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>Layout and Rendering</component>
          <version>Safari 10</version>
          <rep_platform>All</rep_platform>
          <op_sys>iOS 10</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://jsfiddle.net/booc0mtaco/kyekqjrL/</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>andrew.holloway</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ajh</cc>
    
    <cc>bfulgham</cc>
    
    <cc>fred.wang</cc>
    
    <cc>rbuis</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>1315238</commentid>
    <comment_count>0</comment_count>
    <who name="">andrew.holloway</who>
    <bug_when>2017-06-02 15:06:32 -0700</bug_when>
    <thetext>I&apos;ve created a minimal example to demonstrate this issue, located here: 

https://jsfiddle.net/booc0mtaco/kyekqjrL/

STEPS to reproduce:

1) open the linked JSFiddle and view the content in MobileSafari
2) click on the header &quot;click to reveal&quot;
3) note that content is visible
4) attempt to scroll to the right

**Expected behavior: the content will scroll smoothly, making use of the prefixed tag for smooth scrolling.

**Actual behavior: the container will vanish.

They are still in the DOM , and in the right locations. Closing and reopening the section also restores them to visible until the next scroll is made.

Removing the prefixed property `-webkit-overflow-scrolling` fixes the behavior, but makes the scroll work as it used to and becomes sticky. Also, removing some of the other properties will fix the symptoms intermittently.

In most cases, triggering any DOM change or style change adjacent to the vanished element will trigger a repaint, and the content will become visible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1315254</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-06-02 15:24:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/32546124&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1315346</commentid>
    <comment_count>2</comment_count>
      <attachid>311898</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-06-02 19:47:16 -0700</bug_when>
    <thetext>Created attachment 311898
Slightly reduced test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1315347</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-06-02 19:47:42 -0700</bug_when>
    <thetext>This is gnarly. Seems to involve opacity transitions, nested scrollers, and dynamic hide/show.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1315717</commentid>
    <comment_count>4</comment_count>
    <who name="">andrew.holloway</who>
    <bug_when>2017-06-05 10:33:30 -0700</bug_when>
    <thetext>Thanks for cleaning that up. As you probably saw, removing any one of those will cause the proper repainting. 

One note for reference. In one iteration of testing, I noticed that setting the end-transition opacity to .99 or lower seemed to fix it. Not sure if stacking context might also be involved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574752</commentid>
    <comment_count>5</comment_count>
    <who name="Andrew H">ajh</who>
    <bug_when>2019-09-27 00:07:24 -0700</bug_when>
    <thetext>Combing thru my open OSS bugs and it appears this might be fixed in the latest webkit on iOS (13.1)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1575047</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-09-28 04:02:41 -0700</bug_when>
    <thetext>Thanks for checking!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>311898</attachid>
            <date>2017-06-02 19:47:16 -0700</date>
            <delta_ts>2017-06-02 19:47:16 -0700</delta_ts>
            <desc>Slightly reduced test case</desc>
            <filename>content-disappears.html</filename>
            <type>text/html</type>
            <size>2301</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+Cgo8aHRtbD4KPGhlYWQ+CiAgICA8c3R5bGU+CiAgICAgICAgLyogZm9y
IFVJIG9ubHkgKi8KICAgICAgICAuZmlsdGVyLW5hdiB7CiAgICAgICAgICBwYWRkaW5nOiAyMnB4
OwogICAgICAgICAgYm9yZGVyOiAxcHggZG90dGVkIGJsYWNrOwogICAgICAgIH0KCiAgICAgICAg
Lyogc3R5bGVzIHRoYXQsIGlmIHJlbW92ZWQsIGZpeCB0aGUgYmVoYXZpb3IsIGFyZSBtYXJrZWQg
YmVsb3cgd2l0aCBlbXB0eSBjb21tZW50ICovCiAgICAgICAgLyogYmFja2dyb3VuZC1jb2xvciBh
ZGRlZCB0byBpbGx1c3RyYXRlIHZhbmlzaGluZyBjb250YWluZXJzICovCiAgICAgICAgLmNvbnQt
ZmlsdGVyLW9wdGlvbnMgewogICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogcmVkOwoKICAgICAg
ICAgIHdpZHRoOiAzMjBweDsKICAgICAgICAgIHRyYW5zaXRpb246IG1heC1oZWlnaHQgMXMgZWFz
ZS1pbi1vdXQsIG9wYWNpdHkgLjhzIGVhc2Utb3V0OwogICAgICAgICAgb3ZlcmZsb3cteTogaGlk
ZGVuOwogICAgICAgICAgLXdlYmtpdC1vdmVyZmxvdy1zY3JvbGxpbmc6IHRvdWNoOyAvKiovCiAg
ICAgICAgfQoKICAgICAgICAuY29sbGFwc2VkIC5jb250LWZpbHRlci1vcHRpb25zIHsKICAgICAg
ICAgIG1heC1oZWlnaHQ6IDA7CiAgICAgICAgICBvcGFjaXR5OiAwLjU7CiAgICAgICAgfQoKICAg
ICAgICAuZXhwYW5kZWQgLmNvbnQtZmlsdGVyLW9wdGlvbnMgewogICAgICAgICAgbWF4LWhlaWdo
dDogMjAwcHg7CiAgICAgICAgICBvcGFjaXR5OiAxOwogICAgICAgICAgb3ZlcmZsb3cteTogYXV0
bzsgLyoqLwogICAgICAgIH0KICAgICAgICAKICAgICAgICAuZmlsdGVyLXNlY3Rpb24gewogICAg
ICAgICAgICBwYWRkaW5nOiAxMHB4OwogICAgICAgIH0KCiAgICAgICAgLmNvbnQtZmlsdGVycyB7
CiAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiBncmVlbjsKCiAgICAgICAgICBvdmVyZmxvdzog
aGlkZGVuOwogICAgICAgICAgb3ZlcmZsb3cteDogYXV0bzsKICAgICAgICAgIHdoaXRlLXNwYWNl
OiBub3dyYXA7CiAgICAgICAgfQoKICAgICAgICAuZmlsdGVyLW1haW4tY29udGFpbmVyIHsKICAg
ICAgICAgICAgcGFkZGluZzogMTBweDsKICAgICAgICAgICAgY29sb3I6IHdoaXRlOwogICAgICAg
IH0KCiAgICAgICAgLmZpbHRlcnMtY29udGFpbmVyIHsKICAgICAgICAgIHdpZHRoOiA1MDBweDsK
ICAgICAgICAgIGhlaWdodDogMTAwcHg7CiAgICAgICAgfQogICAgPC9zdHlsZT4KPC9oZWFkPgo8
Ym9keT4KCiAgICA8bWFpbiBjbGFzcz0iY29sbGFwc2VkIj4KICAgICAgPGRpdiBjbGFzcz0iZmls
dGVyLW5hdiI+Y2xpY2sgdG8gcmV2ZWFsPC9kaXY+CiAgICAgIDxkaXYgY2xhc3M9ImNvbnQtZ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29sbGFwc2VkJyk7CiAgICAgICAgbWFpbi5jbGFzc0xpc3QucmVt
b3ZlKCdleHBhbmRlZCcpOwogICAgICB9CiAgICB9LCB0cnVlKTsgICAgICAgIAogICAgPC9zY3Jp
cHQ+Cgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>