<?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>233084</bug_id>
          
          <creation_ts>2021-11-13 06:57:25 -0800</creation_ts>
          <short_desc>Scroll through content hidden with clip-path does not propagate below</short_desc>
          <delta_ts>2023-01-25 10:14:27 -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>UI Events</component>
          <version>Safari Technology Preview</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=214367</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="Bruno Stasse">augus.dupin</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>augus.dupin</cc>
    
    <cc>graouts</cc>
    
    <cc>satoshionoda</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>1814746</commentid>
    <comment_count>0</comment_count>
      <attachid>444137</attachid>
    <who name="Bruno Stasse">augus.dupin</who>
    <bug_when>2021-11-13 06:57:25 -0800</bug_when>
    <thetext>Created attachment 444137
testcase

When clip-path is applied to an element, the content below the clipped part of the element cannot be scrolled, instead nothing happens.

See the attachment.

Scrolling below the purple square should trigger scroll underneath, but nothing happens. Note that other events (CSS hover and click) seem to work fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1815217</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-11-15 14:35:51 -0800</bug_when>
    <thetext>This might be bug 214367</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1817114</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-11-20 06:58:26 -0800</bug_when>
    <thetext>&lt;rdar://problem/85634077&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926856</commentid>
    <comment_count>3</comment_count>
    <who name="Bruno Stasse">augus.dupin</who>
    <bug_when>2023-01-20 03:30:05 -0800</bug_when>
    <thetext>Is there any update on this? This is a pretty bad bug and a substantial issue for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927022</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-01-20 14:32:26 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/8896</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927381</commentid>
    <comment_count>5</comment_count>
    <who name="Satoshi Onoda">satoshionoda</who>
    <bug_when>2023-01-22 20:39:20 -0800</bug_when>
    <thetext>@Bruno Stasse 

I&apos;ve encountered exactly the same problem and found a strange solution.
Adding a wheel event to the clipped element somehow solves this.

https://codepen.io/satoshionoda/pen/yLqvXrW

I suppose this is quite hacky but can be used until this bug is completely solved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927526</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-01-23 11:25:29 -0800</bug_when>
    <thetext>(In reply to Satoshi Onoda from comment #5)
&gt; @Bruno Stasse 
&gt; 
&gt; I&apos;ve encountered exactly the same problem and found a strange solution.
&gt; Adding a wheel event to the clipped element somehow solves this.
&gt; 
&gt; https://codepen.io/satoshionoda/pen/yLqvXrW
&gt; 
&gt; I suppose this is quite hacky but can be used until this bug is completely
&gt; solved.

That makes sense because wheel event handlers kick WebKit off of the fast path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927774</commentid>
    <comment_count>7</comment_count>
    <who name="Bruno Stasse">augus.dupin</who>
    <bug_when>2023-01-24 03:13:56 -0800</bug_when>
    <thetext>Ha that&apos;s quite interesting, thank you Satoshi Onoda! Unfortunately I need it to work on iOS, and there is no wheel events there so it doesn&apos;t work.

If anyone has another workaround for iOS it would be very much welcome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928171</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-25 09:46:29 -0800</bug_when>
    <thetext>Committed 259368@main (96deabf28dd0): &lt;https://commits.webkit.org/259368@main&gt;

Reviewed commits have been landed. Closing PR #8896 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928183</commentid>
    <comment_count>9</comment_count>
    <who name="Bruno Stasse">augus.dupin</who>
    <bug_when>2023-01-25 10:14:27 -0800</bug_when>
    <thetext>Thank you for the fix!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>444137</attachid>
            <date>2021-11-13 06:57:25 -0800</date>
            <delta_ts>2021-11-13 06:57:25 -0800</delta_ts>
            <desc>testcase</desc>
            <filename>scroll-testcase.html</filename>
            <type>text/html</type>
            <size>1823</size>
            <attacher name="Bruno Stasse">augus.dupin</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KICAgIDxoZWFkPgogICAgICAgIDxtZXRh
IGNoYXJzZXQ9IlVURi04IiAvPgogICAgICAgIDxtZXRhIGh0dHAtZXF1aXY9IlgtVUEtQ29tcGF0
aWJsZSIgY29udGVudD0iSUU9ZWRnZSIgLz4KICAgICAgICA8bWV0YSBuYW1lPSJ2aWV3cG9ydCIg
Y29udGVudD0id2lkdGg9ZGV2aWNlLXdpZHRoLCBpbml0aWFsLXNjYWxlPTEuMCIgLz4KICAgICAg
ICA8dGl0bGU+RG9jdW1lbnQ8L3RpdGxlPgogICAgICAgIDxzdHlsZT4KICAgICAgICAgICAgaHRt
bCwKICAgICAgICAgICAgYm9keSB7CiAgICAgICAgICAgICAgICBtYXJnaW46IDA7CiAgICAgICAg
ICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgICAgICAgICAgaGVpZ2h0OiAxMDAlOwog
ICAgICAgICAgICB9CiAgICAgICAgICAgIC5iZWxvdy1zY3JvbGwgewogICAgICAgICAgICAgICAg
aGVpZ2h0OiAxMDB2aDsKICAgICAgICAgICAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICAgICAg
ICB9CiAgICAgICAgICAgIC5iZWxvdy1jb250ZW50IHsKICAgICAgICAgICAgICAgIGJhY2tncm91
bmQtY29sb3I6IHJlZDsKICAgICAgICAgICAgICAgIGhlaWdodDogMzAwdmg7CiAgICAgICAgICAg
ICAgICBib3JkZXI6IDEwcHggc29saWQgeWVsbG93OwogICAgICAgICAgICB9CiAgICAgICAgICAg
IC5iZWxvdy1jb250ZW50OmhvdmVyIHsKICAgICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6
IHBpbms7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgLmFib3ZlLXNjcm9sbCB7CiAgICAgICAg
ICAgICAgICBwb3NpdGlvbjogZml4ZWQ7CiAgICAgICAgICAgICAgICB0b3A6IDgwcHg7CiAgICAg
ICAgICAgICAgICB3aWR0aDogMjAwcHg7CiAgICAgICAgICAgICAgICBoZWlnaHQ6IDQwMHB4Owog
ICAgICAgICAgICAgICAgYm9yZGVyOiA1cHggc29saWQgZ3JlZW47CiAgICAgICAgICAgICAgICBv
dmVyZmxvdzogYXV0bzsKICAgICAgICAgICAgICAgIGNsaXAtcGF0aDogaW5zZXQoMCAwIDIwMHB4
IDApOwogICAgICAgICAgICB9CiAgICAgICAgICAgIC5hYm92ZS1jb250ZW50IHsKICAgICAgICAg
ICAgICAgIGJvcmRlcjogMTBweCBzb2xpZCBvcmFuZ2U7CiAgICAgICAgICAgICAgICBiYWNrZ3Jv
dW5kLWNvbG9yOiBwdXJwbGU7CiAgICAgICAgICAgICAgICBoZWlnaHQ6IDEwMDBweDsKICAgICAg
ICAgICAgfQogICAgICAgIDwvc3R5bGU+CiAgICA8L2hlYWQ+CiAgICA8Ym9keT4KICAgICAgICA8
ZGl2IGNsYXNzPSJiZWxvdy1zY3JvbGwiPgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJiZWxvdy1j
b250ZW50Ij4KICAgICAgICAgICAgICAgIFNjcm9sbCByaWdodCBiZWxvdyB0aGUgcHVycGxlIHNx
dWFyZSwgaXQgc2hvdWxkIHNjcm9sbAogICAgICAgICAgICAgICAgdW5kZXJuZWF0aCwgYnV0IG5v
dGhpbmcgaGFwcGVucy4gTm90ZSB0aGF0IG90aGVyIGV2ZW50cyAoQ1NTCiAgICAgICAgICAgICAg
ICBob3ZlciBhbmQgY2xpY2spIHNlZW0gdG8gd29yayBmaW5lLgogICAgICAgICAgICA8L2Rpdj4K
ICAgICAgICA8L2Rpdj4KICAgICAgICA8ZGl2IGNsYXNzPSJhYm92ZS1zY3JvbGwiPgogICAgICAg
ICAgICA8ZGl2IGNsYXNzPSJhYm92ZS1jb250ZW50Ij48L2Rpdj4KICAgICAgICA8L2Rpdj4KICAg
IDwvYm9keT4KICAgIDxzY3JpcHQ+CiAgICAgICAgZG9jdW1lbnQKICAgICAgICAgICAgLnF1ZXJ5
U2VsZWN0b3IoIi5iZWxvdy1jb250ZW50IikKICAgICAgICAgICAgLmFkZEV2ZW50TGlzdGVuZXIo
ImNsaWNrIiwgKCkgPT4gYWxlcnQoImNsaWNrZWQiKSk7CiAgICA8L3NjcmlwdD4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>