<?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>189907</bug_id>
          
          <creation_ts>2018-09-23 21:40:30 -0700</creation_ts>
          <short_desc>Make Element.scrollIntoView properly work with nested scroll boxes and smooth behavior</short_desc>
          <delta_ts>2022-08-03 15:29:40 -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>UI Events</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://github.com/w3c/csswg-drafts/issues/3127</see_also>
          <bug_file_loc>https://drafts.csswg.org/cssom-view/#scroll-an-element-into-view</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>188043</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frédéric Wang Nélar">fred.wang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>mrobinson</cc>
    
    <cc>rbuis</cc>
    
    <cc>rniwa</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>1462605</commentid>
    <comment_count>0</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2018-09-23 21:40:30 -0700</bug_when>
    <thetext>Follow-up of bug 188043. This might need a bit more work so I&apos;m moving that part out of the main bug.

Basically, the patch in bug 188043 naively follows https://drafts.csswg.org/cssom-view/#scroll-an-element-into-view but does not wait for smooth scroll of step 12 to complete, possibly resulting in wrong final positions. It&apos;s not clear we actually want to align on the current spec anyway, Gecko and Chromium use different algorithm. For details, see https://github.com/w3c/csswg-drafts/issues/3127

The WPT test for this is http://w3c-test.org/css/cssom-view/scroll-behavior-scrollintoview-nested.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1786985</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-24 16:12:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/82314968&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1824584</commentid>
    <comment_count>2</comment_count>
      <attachid>447299</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-12-15 16:46:38 -0800</bug_when>
    <thetext>Created attachment 447299
Testcase

Seems to work OK looking at the attached testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1824756</commentid>
    <comment_count>3</comment_count>
    <who name="Rob Buis">rbuis</who>
    <bug_when>2021-12-16 07:40:13 -0800</bug_when>
    <thetext>Possibly I fixed this, anyway maybe Fred can double-check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887454</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-28 14:47:34 -0700</bug_when>
    <thetext>Safari pass WPT test for following - https://wpt.fyi/results/css/cssom-view/scroll-behavior-scrollintoview-nested.html?label=master&amp;label=experimental&amp;aligned&amp;q=scroll-behavior

Is it needed now or this can be marked as &quot;RESOLVED CONFIGURATION CHANGED&quot;? Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888724</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-03 15:29:40 -0700</bug_when>
    <thetext>Further, Safari also matches in behavior with all other browsers. I am going to mark this as &quot;RESOLVED CONFIGURATION CHANGED&quot;, please reopen if this is not fixed. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>447299</attachid>
            <date>2021-12-15 16:46:38 -0800</date>
            <delta_ts>2021-12-15 16:46:38 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>nested-scroll-into-view-smooth.html</filename>
            <type>text/html</type>
            <size>1760</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICAgIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBj
b250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsIGluaXRpYWwtc2NhbGU9MSwgc2hyaW5rLXRvLWZp
dD1ubyI+CiAgICA8c3R5bGU+CiAgICAgICAgLmNvbnRhaW5lciB7CiAgICAgICAgICAgIHdpZHRo
OiA4MDBweDsKICAgICAgICAgICAgaGVpZ2h0OiA4MDBweDsKICAgICAgICAgICAgcGFkZGluZzog
MTBweDsKICAgICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgZ3JheTsKICAgICAgICB9CiAgICAg
ICAgCiAgICAgICAgLnNjcm9sbGVyIHsKICAgICAgICAgICAgd2lkdGg6IDkwJTsKICAgICAgICAg
ICAgaGVpZ2h0OiA1MDBweDsKICAgICAgICAgICAgYm9yZGVyOiAzcHggc29saWQgYmx1ZTsKICAg
ICAgICAgICAgb3ZlcmZsb3c6IHNjcm9sbDsKICAgICAgICAgICAgbWFyZ2luOiAxMHB4OwogICAg
ICAgICAgICBwYWRkaW5nOiAxMHB4OwogICAgICAgICAgICBzY3JvbGwtYmVoYXZpb3I6IHNtb290
aDsKICAgICAgICB9CiAgICAgICAgCiAgICAgICAgLmNvbnRlbnRzIHsKICAgICAgICAgICAgaGVp
Z2h0OiA1MDAlOwogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2JhKDAsIDAsIDAsIDAu
Mik7CiAgICAgICAgfQogICAgICAgIAogICAgICAgIC5zcGFjZXIgewogICAgICAgICAgICBoZWln
aHQ6IDgwMHB4OwogICAgICAgICAgICB3aWR0aDogMTBweDsKICAgICAgICAgICAgYmFja2dyb3Vu
ZC1jb2xvcjogc2lsdmVyOwogICAgICAgIH0KICAgICAgICAKICAgICAgICAuc2Nyb2xsZXIgLnNj
cm9sbGVyIHsKICAgICAgICAgICAgd2lkdGg6IDgwJTsKICAgICAgICB9CiAgICAgICAgCiAgICAg
ICAgI3RhcmdldCB7CiAgICAgICAgICAgIHBhZGRpbmc6IDEwcHg7CiAgICAgICAgICAgIGJhY2tn
cm91bmQtY29sb3I6IG1hZ2VudGE7CiAgICAgICAgfQogICAgPC9zdHlsZT4KICAgIDxzY3JpcHQ+
CiAgICAgICAgd2luZG93LmFkZEV2ZW50TGlzdGVuZXIoJ2xvYWQnLCAoKSA9PiB7CiAgICAgICAg
ICAgIHNldFRpbWVvdXQoKCkgPT4gewogICAgICAgICAgICAgICAgbGV0IHRhcmdldCA9IGRvY3Vt
ZW50LmdldEVsZW1lbnRCeUlkKCd0YXJnZXQnKTsKICAgICAgICAgICAgICAgIHRhcmdldC5zY3Jv
bGxJbnRvVmlldygpOwogICAgICAgICAgICB9LCAxMDAwKTsKICAgICAgICB9LCBmYWxzZSk7CiAg
ICA8L3NjcmlwdD4KPC9oZWFkPgo8Ym9keT4KICAgIDxkaXYgY2xhc3M9ImNvbnRhaW5lciI+CiAg
ICAgICAgPGRpdiBjbGFzcz0ic2Nyb2xsZXIiPgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJjb250
ZW50cyI+CgogICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ic3BhY2VyIj48L2Rpdj4KICAgICAg
ICAgICAgICAgIDxkaXYgY2xhc3M9InNjcm9sbGVyIj4KICAgICAgICAgICAgICAgICAgICA8ZGl2
IGNsYXNzPSJjb250ZW50cyI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InNw
YWNlciI+PC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgaWQ9InRhcmdldCI+CiAg
ICAgICAgICAgICAgICAgICAgICAgICAgICBSZXZlYWwgbWUKICAgICAgICAgICAgICAgICAgICAg
ICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICA8L2Rp
dj4KICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InNwYWNlciI+PC9kaXY+CiAgICAgICAgICAg
IDwvZGl2PgogICAgICAgIDwvZGl2PgogICAgPC9kaXY+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>