<?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>250578</bug_id>
          
          <creation_ts>2023-01-13 08:31:57 -0800</creation_ts>
          <short_desc>Different behaviour for scrollIntoView</short_desc>
          <delta_ts>2023-01-13 11:10:33 -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>Scrolling</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>171099</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rob Buis">rbuis</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1925358</commentid>
    <comment_count>0</comment_count>
    <who name="Rob Buis">rbuis</who>
    <bug_when>2023-01-13 08:31:57 -0800</bug_when>
    <thetext>When using scrollIntoView to scroll to an element into view and then deleting an element above it, the element does not remain anchored in the test case.
This behaviour is different tp chromium and Firefox since there the element remains anchored an in the viewport.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925359</commentid>
    <comment_count>1</comment_count>
      <attachid>464487</attachid>
    <who name="Rob Buis">rbuis</who>
    <bug_when>2023-01-13 08:32:36 -0800</bug_when>
    <thetext>Created attachment 464487
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925382</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-01-13 10:25:56 -0800</bug_when>
    <thetext>That&apos;s because they implement scroll anchoring and WebKit does not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925383</commentid>
    <comment_count>3</comment_count>
    <who name="Rob Buis">rbuis</who>
    <bug_when>2023-01-13 10:28:02 -0800</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #2)
&gt; That&apos;s because they implement scroll anchoring and WebKit does not.

Is there an existing bug for that feature? If so I will close this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925386</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-01-13 10:56:26 -0800</bug_when>
    <thetext>https://bugs.webkit.org/show_bug.cgi?id=171099</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925394</commentid>
    <comment_count>5</comment_count>
    <who name="Rob Buis">rbuis</who>
    <bug_when>2023-01-13 11:10:13 -0800</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #4)
&gt; https://bugs.webkit.org/show_bug.cgi?id=171099

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925395</commentid>
    <comment_count>6</comment_count>
    <who name="Rob Buis">rbuis</who>
    <bug_when>2023-01-13 11:10:33 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 171099 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>464487</attachid>
            <date>2023-01-13 08:32:36 -0800</date>
            <delta_ts>2023-01-13 08:32:36 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>scrollAnchor.html</filename>
            <type>text/html</type>
            <size>358</size>
            <attacher name="Rob Buis">rbuis</attacher>
            
              <data encoding="base64">PCFET0NUWVBFPgo8c2NyaXB0PgpmdW5jdGlvbiBydW5UZXN0KCkgewogIHRhcmdldC5zY3JvbGxJ
bnRvVmlldygpOwogIHNwYWNlci5yZW1vdmUoKTsKfQo8L3NjcmlwdD4KPGJvZHkgb25sb2FkPSJy
dW5UZXN0KCkiPgogIDxwPlRlc3QgcGFzc2VzIGlmIHRoZXJlIGlzIGEgZmlsbGVkIGdyZWVuIHNx
dWFyZS48L3A+CiAgPGRpdiBpZD0ic3BhY2VyIiBzdHlsZT0iaGVpZ2h0OiAyMDAwMHB4Ij48L2Rp
dj4KICA8ZGl2IGlkPSJ0YXJnZXQiIHN0eWxlPSJiYWNrZ3JvdW5kOiBncmVlbjsgd2lkdGg6IDEw
MHB4OyBoZWlnaHQ6IDEwMHB4Ij48L2Rpdj4KICA8ZGl2IHN0eWxlPSJoZWlnaHQ6IDIwMDAwcHgi
PjwvZGl2Pgo8L2JvZHk+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>