<?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>267876</bug_id>
          
          <creation_ts>2024-01-22 13:18:00 -0800</creation_ts>
          <short_desc>REGRESSION (iOS 17?): Adding or removing scroll-snap-align: none causes scroll position to jump backwards or forwards</short_desc>
          <delta_ts>2024-01-26 10:33:34 -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>Layout and Rendering</component>
          <version>Safari 17</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 17</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>amandabugreports</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>nmouchtaris</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>2006636</commentid>
    <comment_count>0</comment_count>
    <who name="">amandabugreports</who>
    <bug_when>2024-01-22 13:18:00 -0800</bug_when>
    <thetext>When using a scroll-snap container with at least three children (&quot;slides&quot;), if the container is scrolled to at least the second slide, and scroll-snap-align: none is added to or removed from the slide before it, the scroll position of the container will jump.

Steps to reproduce:

1. Open test case on a mobile device running iOS 17: https://codepen.io/amandaesmith3/pen/ExMmrQo
2. Wait half a second so the scroll position of the container moves to slide 2, due to the included setTimeout.
3. Click the &quot;disable first slide&quot; button, which adds scroll-snap-align: none to slide 1.
4. Observe that the container&apos;s scroll position jumps to slide 3.
5. Click the &quot;scroll to middle&quot; button, which moves the scroll position back to slide 2.
6. Click the &quot;enable first slide&quot; button, which removes scroll-snap-align: none from slide 1.
7. Observe that the container&apos;s scroll position jumps to slide 1.

Expected behavior: The scroll position of the container should not change when adding or removing scroll-snap-align: none on slide 1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2006881</commentid>
    <comment_count>1</comment_count>
    <who name="">amandabugreports</who>
    <bug_when>2024-01-23 07:39:46 -0800</bug_when>
    <thetext>This looks to be a regression in iOS 17.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2006977</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-01-23 13:19:51 -0800</bug_when>
    <thetext>&lt;rdar://problem/121466225&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>