<?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>293227</bug_id>
          
          <creation_ts>2025-05-19 04:50:03 -0700</creation_ts>
          <short_desc>Element.scrollBy() doesn&apos;t snap with scroll-snap-type mandatory</short_desc>
          <delta_ts>2025-07-08 18:20:36 -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 18</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=241737</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="Martin (MConverter)">webkit.bugzilla</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>karlcow</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>webkit.bugzilla</cc>
    
    <cc>woodlxf00</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2118077</commentid>
    <comment_count>0</comment_count>
      <attachid>475302</attachid>
    <who name="Martin (MConverter)">webkit.bugzilla</who>
    <bug_when>2025-05-19 04:50:03 -0700</bug_when>
    <thetext>Created attachment 475302
Demo

Expected behavior (works in Firefox, Chrome): On each 1.5 seconds, the container should scroll and snap to the next snapping point.

Actual behavior in Safari (on macOS and iOS): On each 1.5 seconds, the container scrolls by 1px, and doesn&apos;t snap to any snapping point.

Demo: https://safari-auto-scroll-snap.glitch.me/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2119692</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-05-26 04:50:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/152036489&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124451</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-06-18 04:04:30 -0700</bug_when>
    <thetext>Does it affect any live website or mconverter.eu?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124643</commentid>
    <comment_count>3</comment_count>
    <who name="Martin (MConverter)">webkit.bugzilla</who>
    <bug_when>2025-06-18 18:56:20 -0700</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #2)
&gt; Does it affect any live website or mconverter.eu?

Yes, this bug affects the auto-scrolling quotes on MConverter&apos;s live pricing page: https://mconverter.eu/#upgrade</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2128588</commentid>
    <comment_count>4</comment_count>
    <who name="Woody Lee">woodlxf00</who>
    <bug_when>2025-07-08 18:20:36 -0700</bug_when>
    <thetext>Please pay extra attention to the decimal size case: 
Programmatic scroll don&apos;t meet CSS scroll snap when the stop item size is with non-integer size.
The issue reproduces in both Chrome and Firefox.

See also:
https://issues.chromium.org/issues/423245958
https://bugzilla.mozilla.org/show_bug.cgi?id=1973652</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>475302</attachid>
            <date>2025-05-19 04:50:03 -0700</date>
            <delta_ts>2025-05-19 04:50:03 -0700</delta_ts>
            <desc>Demo</desc>
            <filename>Auto_scroll_snap.html</filename>
            <type>text/html</type>
            <size>1084</size>
            <attacher name="Martin (MConverter)">webkit.bugzilla</attacher>
            
              <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Gl2PgogICAgPGRpdiBjbGFzcz0icXVvdGUiPlRleHQgNTwvZGl2PgogICAg
PGRpdiBjbGFzcz0icXVvdGUiPlRleHQgNjwvZGl2PgogIDwvZGl2PgogIAogIDxzY3JpcHQ+CiAg
ICBzZXRJbnRlcnZhbCgoKSA9PiB7CiAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdxdW90
ZXMnKS5zY3JvbGxCeSh7CiAgICAgICAgICBsZWZ0OiAxLAogICAgICAgICAgYmVoYXZpb3I6ICdz
bW9vdGgnCiAgICAgIH0pOwogICAgfSwgMTUwMCk7CiAgPC9zY3JpcHQ+CjwvYm9keT4KPC9odG1s
Pg==
</data>

          </attachment>
      

    </bug>

</bugzilla>