<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25728</bug_id>
          
          <creation_ts>2014-05-15 16:57:21 +0000</creation_ts>
          <short_desc>element.scrollIntoView should implement scrolling animation</short_desc>
          <delta_ts>2014-11-11 13:36:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSSOM View</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin Suttle">kevin</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>dburns</cc>
    
    <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106051</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Suttle">kevin</who>
    <bug_when>2014-05-15 16:57:21 +0000</bug_when>
    <thetext>Jumping the user to and from anchors is a jarring experience.

Suggested DOM function signature:

element.scrollIntoView(alignWithTop, scrollDuration, scrollSpeed, scrollEasing)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106052</commentid>
    <comment_count>1</comment_count>
    <who name="Kevin Suttle">kevin</who>
    <bug_when>2014-05-15 17:04:41 +0000</bug_when>
    <thetext>This options here demonstrate what I&apos;m referencing. Unlike this code, however, the values wouldn&apos;t need data-* attributes.

https://github.com/cferdinandi/smooth-scroll#global-settings</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106075</commentid>
    <comment_count>2</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-05-15 19:13:39 +0000</bug_when>
    <thetext>Kevin,

Do you mean this bug for webdriver as Comment 1 doesnt appear to use the webdriver API or do you mean it for DOM?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106922</commentid>
    <comment_count>3</comment_count>
    <who name="Kevin Suttle">kevin</who>
    <bug_when>2014-05-28 16:58:40 +0000</bug_when>
    <thetext>(In reply to David Burns :automatedtester from comment #2)
&gt; Kevin,
&gt; 
&gt; Do you mean this bug for webdriver as Comment 1 doesnt appear to use the
&gt; webdriver API or do you mean it for DOM?

Apologies. For DOM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114792</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-11-11 13:36:10 +0000</bug_when>
    <thetext>The spec supports scrollIntoView({behavior:&quot;smooth&quot;})
http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface

Alternatively you can set scroll-behavior: smooth; CSS property, which also scrolls smoothly when navigating to a fragment identifier.
http://dev.w3.org/csswg/cssom-view/#smooth-scrolling:-the-&apos;scroll-behavior&apos;-property

Please reopen if this does not sufficient.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>