<?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>225387</bug_id>
          
          <creation_ts>2021-05-05 02:21:53 -0700</creation_ts>
          <short_desc>scroll-padding not working correctly when scroll target is partially out of scroll port</short_desc>
          <delta_ts>2021-05-31 03:56:50 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>42593</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 name="Martin Robinson">mrobinson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>charlie.croom</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1756869</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2021-05-05 02:21:53 -0700</bug_when>
    <thetext>Copied from 222259:

For additional context, I believe this may occur in STP too. Please compare the behavior of Safari to Firefox on https://codepen.io/comp615/pen/bGqbrEx

Click the &quot;right&quot; button a few times.

In Firefox (correct), on hitting C, D, E...the scroll is moved so that the selected item aligns with scroll-padding taken into account.

In Safari, (Wrong), D does not move the scroller (incorrect because it&apos;s behind the scroll-adding)...E also does not (wholly wrong because it&apos;s not even in the scroll frame)... and from there it moves the item alternatingly correctly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1759217</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-12 02:22:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/77894395&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1765382</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2021-05-31 03:56:50 -0700</bug_when>
    <thetext>Looks like this behavior was added purposefully, but it feels like it isn&apos;t spec compliant.

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

    </bug>

</bugzilla>