<?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>208110</bug_id>
          
          <creation_ts>2020-02-23 12:58:24 -0800</creation_ts>
          <short_desc>scroll-margin not working with scrollIntoView()</short_desc>
          <delta_ts>2020-04-30 11:38:20 -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 13</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>189265</dup_id>
          
          <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>collimarco91</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>709922234</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1622018</commentid>
    <comment_count>0</comment_count>
    <who name="">collimarco91</who>
    <bug_when>2020-02-23 12:58:24 -0800</bug_when>
    <thetext>scroll-margin does not work with scrollIntoView().

For example:
1. Visit this page: https://buonmenu.com/example
2. Click &quot;Menù all you can eat&quot;
3. Click &quot;Primi piatti&quot; or anything else in the bottom navigation
4. scroll-margin is ignored, while Chrome and other browsers behave properly

I have also tried to add scroll-snap-margin to the element using the inspector, but it is still ignored.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1622027</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-02-23 14:17:22 -0800</bug_when>
    <thetext>&lt;rdar://problem/59709786&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1622377</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-02-24 15:56:54 -0800</bug_when>
    <thetext>This is a fairly recent CSS change that isn&apos;t implemented yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1622532</commentid>
    <comment_count>3</comment_count>
    <who name="">collimarco91</who>
    <bug_when>2020-02-25 01:09:57 -0800</bug_when>
    <thetext>&gt; his is a fairly recent CSS change

Ok, that is true for the name of the property.

However there is *also* a second bug: scroll-snap-margin (or scroll-margin in the future) does not work with scrollIntoView()... it is completely ignored.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1647446</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-04-30 11:38:20 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 189265 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>