[Bug 29394] New: Specify (or at least recommend) options for scrollIntoView call

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29394

            Bug ID: 29394
           Summary: Specify (or at least recommend) options for
                    scrollIntoView call
           Product: Browser Test/Tools WG
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebDriver
          Assignee: public-browser-tools-testing@w3.org
          Reporter: fisherii@google.com
        QA Contact: public-browser-tools-testing@w3.org
                CC: mike@w3.org
            Blocks: 20860
  Target Milestone: ---

In https://w3c.github.io/webdriver/webdriver-spec.html#elements it says:
"An element is scrolled into view by calling scrollIntoView()."

However scrollIntoView can take options
(https://drafts.csswg.org/cssom-view/#extension-to-the-element-interface).

Current implementations handle this differently:
chromedriver and marionette appear to use "nearest"
Selenium firefoxdriver appears to use "start"
not sure about any other implementations

These differences lead to reduced portability of tests, particularly in the
presence of absolute positioned (or similar) elements on the page.


Referenced Bugs:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20860
[Bug 20860] WebDriver Level 1
-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 26 January 2016 18:49:27 UTC