<?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>243452</bug_id>
          
          <creation_ts>2022-08-02 07:08:49 -0700</creation_ts>
          <short_desc>Overscroll Behavior not respecting elements with no overflowing content</short_desc>
          <delta_ts>2026-05-06 20:30:33 -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>Scrolling</component>
          <version>Safari Technology Preview</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>kari.pihkala</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>agafvv</cc>
    
    <cc>bramus</cc>
    
    <cc>dev</cc>
    
    <cc>elektronik2k5</cc>
    
    <cc>moz</cc>
    
    <cc>nanto</cc>
    
    <cc>siddhantvirmani</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>woodlxf00</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1888381</commentid>
    <comment_count>0</comment_count>
      <attachid>461359</attachid>
    <who name="">kari.pihkala</who>
    <bug_when>2022-08-02 07:08:49 -0700</bug_when>
    <thetext>Created attachment 461359
overscrollbehavior.html

In Safari, the overscroll-behavior CSS property doesn&apos;t have any effect when the overflow property is set to &quot;auto&quot;, &quot;hidden&quot; or &quot;scroll&quot; and when the content doesn&apos;t overflow. The overscroll-behavior CSS property should affect the scrolling behavior even if the content doesn&apos;t overflow.

Steps to reproduce:

1. Open the attached overscrollbehavior.html on a desktop browser.
2. Move the mouse cursor over the white box on the right side.
3. Try to scroll the white box with two finger scrolling.

Expected behavior: Nothing should happen. The underlying page with the blue &quot;Main&quot; texts should not scroll.

Actual behavior: The underlying page with the blue &quot;Main&quot; texts is scrolled.

Note that the gray box on the left side behaves correctly. Scrolling it with the two finger scrolling only scrolls the black &quot;Left&quot; texts. The blue &quot;Main&quot; texts are never scrolled.

Chrome 103 has the same bug https://bugs.chromium.org/p/chromium/issues/detail?id=813094
Firefox has the same issue, but no one has filed a bug for it.

Tested on Safari Technology Preview 149 (Safari 16.0, WebKit 17614.1.19.1.5) with the experimental CSS Overscroll Behavior feature enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889974</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-09 07:09:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/98381693&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2040319</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2024-06-07 09:12:19 -0700</bug_when>
    <thetext>To implement this we’d have to represent non-scrollable boxes with overscroll-behavior:contain in the scrolling tree, which is a fair amount of work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155731</commentid>
    <comment_count>3</comment_count>
    <who name="j.j.">moz</who>
    <bug_when>2025-11-01 10:13:31 -0700</bug_when>
    <thetext>Chromium is going to fix this
https://groups.google.com/a/chromium.org/g/blink-dev/c/OSq1yVSSdDE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2168478</commentid>
    <comment_count>4</comment_count>
    <who name="Nick Ribal">elektronik2k5</who>
    <bug_when>2025-12-29 02:12:58 -0800</bug_when>
    <thetext>Shipped in Chrome 144: https://chromestatus.com/feature/5129635997941760</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2207686</commentid>
    <comment_count>5</comment_count>
    <who name="nanto_vi (TOYAMA Nao)">nanto</who>
    <bug_when>2026-05-05 09:03:43 -0700</bug_when>
    <thetext>Firefox 150 fixed this: https://bugzilla.mozilla.org/show_bug.cgi?id=1837436</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>461359</attachid>
            <date>2022-08-02 07:08:49 -0700</date>
            <delta_ts>2022-08-02 07:08:49 -0700</delta_ts>
            <desc>overscrollbehavior.html</desc>
            <filename>overscrollbehavior.html</filename>
            <type>text/html</type>
            <size>1328</size>
            <attacher>kari.pihkala</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPG1ldGEgY2hhcnNldD0idXRmLTgiPgo8c3R5
bGU+CmJvZHkgewogICAgY29sb3I6IGJsdWU7CiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB5ZWxsb3c7
CiAgICBmb250LXNpemU6IDYwcHg7Cn0KLmZpeGVkIHsKICAgIHBvc2l0aW9uOiBmaXhlZDsKICAg
IGxlZnQ6IDEwMHB4OwogICAgdG9wOiAxMDBweDsKICAgIHJpZ2h0OiAxMDBweDsKICAgIGJvdHRv
bTogMTAwcHg7CiAgICBjb2xvcjogYmxhY2s7CiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTsK
ICAgIGZvbnQtc2l6ZTogNDBweDsKICAgIG92ZXJmbG93OiBhdXRvOwogICAgb3ZlcnNjcm9sbC1i
ZWhhdmlvcjogY29udGFpbjsKfQo8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5PgogICAgPGRpdiBjbGFz
cz0ibWFpbiI+CiAgICAgICAgPHA+TWFpbjwvcD4KICAgICAgICA8cD5NYWluPC9wPgogICAgICAg
IDxwPk1haW48L3A+CiAgICAgICAgPHA+T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l2
Pgo8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>