<?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>27913</bug_id>
          
          <creation_ts>2015-01-27 23:57:40 +0000</creation_ts>
          <short_desc>focusing steps don&apos;t contain scrolling an element into view</short_desc>
          <delta_ts>2016-04-28 16:08:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML a11y Task Force</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y_focus</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rodney Rehm">mail</reporter>
          <assigned_to name="Charles McCathieNevile">chaals</assigned_to>
          <cc>chaals</cc>
    
    <cc>lwatson</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-a11y</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>w3bugs</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>117525</commentid>
    <comment_count>0</comment_count>
    <who name="Rodney Rehm">mail</who>
    <bug_when>2015-01-27 23:57:40 +0000</bug_when>
    <thetext>All browsers scroll an element into view [1] upon the element gaining focus [2]. Of course they behave differently in doing so (varying scroll to top, bottom, center).

Can we have this scrolling step formally defined so user agents might eventually behave the same way?

I&apos;d also like to mention that this scrolling behavior can currently *not* be prevented. When CSS Transitions and CSS Animations are used to reveal the focus target, authors have to wait for the transition to finish before setting focus. If they don&apos;t wait, content is at risk of being scrolled by the user agent, effectively messing up any complex UI. It would go a long way if we could extend Element.focus [3] in a way that prevents this native scrolling.

[1] http://dev.w3.org/csswg/cssom-view/#scroll-an-element-into-view
[2] http://www.w3.org/html/wg/drafts/html/master/editing.html#focusing-steps
[3] http://www.w3.org/html/wg/drafts/html/master/editing.html#focus-management-apis</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117526</commentid>
    <comment_count>1</comment_count>
    <who name="Charles McCathieNevile">chaals</who>
    <bug_when>2015-01-28 00:06:43 +0000</bug_when>
    <thetext>I think this might be a duplicate of an existing bug, but I don&apos;t have time to check yet. Adding it to the list in the hopes that I do so soon :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121960</commentid>
    <comment_count>2</comment_count>
    <who name="Charles McCathieNevile">chaals</who>
    <bug_when>2015-07-10 22:33:32 +0000</bug_when>
    <thetext>Is this a duplicate of 16186?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121964</commentid>
    <comment_count>3</comment_count>
    <who name="Rodney Rehm">mail</who>
    <bug_when>2015-07-10 23:12:19 +0000</bug_when>
    <thetext>I don&apos;t believe this is a duplicate of 16186 per se - although the issues seem closely related.

Bug 16186 is looking at things based on document navigation, i.e. in response to the document&apos;s URL fragment changing. From what I understand, focusing a particular element does not equate to navigating the document. I may be mistaken and this may actually be the same thing, in which case this bug is to be considered a duplicate of 16186 - with the addition of asking for a way to prevent or delay the scrolling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123061</commentid>
    <comment_count>4</comment_count>
    <who name="Rodney Rehm">mail</who>
    <bug_when>2015-09-03 13:04:09 +0000</bug_when>
    <thetext>bug was copied to whatwg/html - https://github.com/whatwg/html/issues/94</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126272</commentid>
    <comment_count>5</comment_count>
    <who name="Léonie Watson">lwatson</who>
    <bug_when>2016-04-28 16:08:30 +0000</bug_when>
    <thetext>Moved to HTML on Github:
https://github.com/w3c/html/issues/300</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>