<?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>21184</bug_id>
          
          <creation_ts>2013-03-04 12:40:37 +0000</creation_ts>
          <short_desc>Need clarification of scroll behavior in WebElement click() method</short_desc>
          <delta_ts>2016-05-09 09:54:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Browser Test/Tools WG</product>
          <component>WebDriver</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          <blocked>20860</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jim Evans">james.h.evans.jr</reporter>
          <assigned_to name="Simon Stewart">simon.m.stewart</assigned_to>
          <cc>dburns</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Browser Testing and Tools WG">public-browser-tools-testing</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83935</commentid>
    <comment_count>0</comment_count>
    <who name="Jim Evans">james.h.evans.jr</who>
    <bug_when>2013-03-04 12:40:37 +0000</bug_when>
    <thetext>In section 14.3.1.1, the spec says click operates on the middle of the element. It further states:

&quot;If the element is outside the viewport (according to the [CSS21] spec), the implementation should bring the element into view first. The implementation may invoke scrollIntoView on the underlying DOM Element.&quot;

It is unclear what the method should do if, after scrolling the element into view, the middle of the element (as defined in this section) is still not visible in the viewport.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83938</commentid>
    <comment_count>1</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2013-03-04 13:58:48 +0000</bug_when>
    <thetext>As long as there is something of the element visible then we should try work with it, as this is what a user *could* do. I&apos;ll take this and update accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83964</commentid>
    <comment_count>2</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2013-03-04 20:25:38 +0000</bug_when>
    <thetext>after speaking to Jim Evans about this, the prefered wording that we will probably use is 

midway along the x- and y-axes of the visible portion of the element after beings scrolled into the viewport if and only if the center point of the bounding client rect of the element is not within the viewport</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101350</commentid>
    <comment_count>3</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-02-25 18:15:05 +0000</bug_when>
    <thetext>iterate over the clientRects  of the element find 1st visible one, if the center is in viewport cick it, otherwise constrain to the view port size and click the centre of that</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126378</commentid>
    <comment_count>4</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2016-05-09 09:54:10 +0000</bug_when>
    <thetext>This section has been rewritten and I think covers what was originally asked. If it doesnt please reopen and what we are missing</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>