<?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>26941</bug_id>
          
          <creation_ts>2014-09-30 20:11:40 +0000</creation_ts>
          <short_desc>The &apos;scroll-behavior&apos; CSS property should accept &apos;auto&apos;.</short_desc>
          <delta_ts>2014-10-15 10:02:41 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <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="Kearwood &quot;Kip&quot; Gilbert">kgilbert</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>112492</commentid>
    <comment_count>0</comment_count>
    <who name="Kearwood &quot;Kip&quot; Gilbert">kgilbert</who>
    <bug_when>2014-09-30 20:11:40 +0000</bug_when>
    <thetext>the CSSOM-View specification, section 14.1 (14.1 Smooth Scrolling: The &apos;scroll-behavior&apos; Property), describes the &apos;scroll-behavior&apos; CSS property as allowing two values, &apos;instant&apos; and &apos;smooth&apos;:

http://www.w3.org/TR/cssom-view/#smooth-scrolling:-the-%27scroll-behavior%27-property

The default value, &apos;instant&apos;, may be misleading as many scrolling actions are animated smoothly by default in our implementation (and others).  I propose that &apos;auto&apos; be an allowed value, and be the default.

The value of &apos;smooth&apos; would remain as defined in the CSSOM-View specification; however, there would be some distinction between &apos;auto&apos; and &apos;instant&apos;.  &apos;auto&apos; may result in a mixture of smooth and instant scrolling animations, defined by existing UA behavior.  &apos;instant&apos; will result in scrolling events that normally animate smoothly by default be scrolled instantly.  If a UA does not scroll smoothly by default for any events, &apos;auto&apos; and &apos;instant&apos; can be synonymous in their implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112497</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-09-30 21:11:54 +0000</bug_when>
    <thetext>Please use editor&apos;s draft: http://dev.w3.org/csswg/cssom-view/#smooth-scrolling:-the-&apos;scroll-behavior&apos;-property

Can you clarify which cases use smooth scrolling today? Note that the property only applies when scrolling happens due to navigation or CSSOM scrolling APIs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112502</commentid>
    <comment_count>2</comment_count>
    <who name="Kearwood &quot;Kip&quot; Gilbert">kgilbert</who>
    <bug_when>2014-09-30 22:07:51 +0000</bug_when>
    <thetext>Smooth scrolling occurs with keyboard scrolling, with scroll-bar interaction, and to align the scroll offset to snap points for CSS scroll snapping. (http://dev.w3.org/csswg/css-snappoints/)

Section 14.1 (Smooth Scrolling: The &apos;scroll-behavior&apos; Property), states:

&quot;The &apos;scroll-behavior&apos; property specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs. Scrolls that are performed by the user are not affected by this property. When this property is specified on the root element, it applies to the viewport instead.&quot;

Would the smooth scroll animation that results from arrow key, page-up/page-down key, home/end key, and scroll bar click events be considered &quot;performed by the user&quot;?  (In the normal case it seems so)

When combined with CSS scroll snapping, the destination of these smooth scroll animations is altered to ensure that the destination is a valid snap point.  This is grey area in terms of being &quot;performed by the user&quot;.

Future use cases may involve platform default smooth scrolling behavior that have not yet been discovered yet (see multi-touch navigation gestures and WebVR UX yet to be defined).

To enable content authors to explicitly disable all smooth scrolling animation (including the scroll bar smooth scrolling and scroll snapping animations), would the scroll-behavior CSS property be the ideal interface for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112503</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-09-30 22:34:55 +0000</bug_when>
    <thetext>(In reply to Kearwood &quot;Kip&quot; Gilbert from comment #2)
&gt; Smooth scrolling occurs with keyboard scrolling, with scroll-bar
&gt; interaction, and to align the scroll offset to snap points for CSS scroll
&gt; snapping. (http://dev.w3.org/csswg/css-snappoints/)
&gt; 
&gt; Section 14.1 (Smooth Scrolling: The &apos;scroll-behavior&apos; Property), states:
&gt; 
&gt; &quot;The &apos;scroll-behavior&apos; property specifies the scrolling behavior for a
&gt; scrolling box, when scrolling happens due to navigation or CSSOM scrolling
&gt; APIs. Scrolls that are performed by the user are not affected by this
&gt; property. When this property is specified on the root element, it applies to
&gt; the viewport instead.&quot;
&gt; 
&gt; Would the smooth scroll animation that results from arrow key,
&gt; page-up/page-down key, home/end key, and scroll bar click events be
&gt; considered &quot;performed by the user&quot;?  (In the normal case it seems so)

Yes.

&gt; When combined with CSS scroll snapping, the destination of these smooth
&gt; scroll animations is altered to ensure that the destination is a valid snap
&gt; point.  This is grey area in terms of being &quot;performed by the user&quot;.

I think the scroll is still performed by the user, but I can clarify it.

&gt; Future use cases may involve platform default smooth scrolling behavior that
&gt; have not yet been discovered yet (see multi-touch navigation gestures and
&gt; WebVR UX yet to be defined).

Sure.

&gt; To enable content authors to explicitly disable all smooth scrolling
&gt; animation (including the scroll bar smooth scrolling and scroll snapping
&gt; animations), would the scroll-behavior CSS property be the ideal interface
&gt; for this?

Why would you want to disable smooth user scrolling?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112506</commentid>
    <comment_count>4</comment_count>
    <who name="Kearwood &quot;Kip&quot; Gilbert">kgilbert</who>
    <bug_when>2014-09-30 23:32:41 +0000</bug_when>
    <thetext>Thanks for your quick feedback.

(In reply to Simon Pieters from comment #3)
&gt; 
&gt; &gt; To enable content authors to explicitly disable all smooth scrolling
&gt; &gt; animation (including the scroll bar smooth scrolling and scroll snapping
&gt; &gt; animations), would the scroll-behavior CSS property be the ideal interface
&gt; &gt; for this?
&gt; 
&gt; Why would you want to disable smooth user scrolling?

One use case would be a spreadsheet application.  In this case, it might be desirable to snap to a cell boundary without the animation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112520</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-10-01 10:17:49 +0000</bug_when>
    <thetext>Interesting. I see that OpenOffice indeed has instant snapping for user scrolling. Can you bring this up on www-style to see what other implementors think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112537</commentid>
    <comment_count>6</comment_count>
    <who name="Kearwood &quot;Kip&quot; Gilbert">kgilbert</who>
    <bug_when>2014-10-01 18:36:20 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #5)
&gt; Interesting. I see that OpenOffice indeed has instant snapping for user
&gt; scrolling. Can you bring this up on www-style to see what other implementors
&gt; think?

Thanks, Simon.

I have started a thread on www-style:

http://lists.w3.org/Archives/Public/www-style/2014Oct/0014.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113187</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-10-15 10:02:41 +0000</bug_when>
    <thetext>Renamed instant to auto, but did not add instant, per mailing list discussion. Can reconsider if there is wider implementor interest for instant.

https://dvcs.w3.org/hg/csswg/rev/85b9c2621f48</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>