[Webkit-unassigned] [Bug 178583] New: Enable ability to prevent scrolling in Element.focus()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 20 07:40:06 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=178583
Bug ID: 178583
Summary: Enable ability to prevent scrolling in Element.focus()
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jihyerish at gmail.com
CC: cdumez at apple.com
There is a spec proposal to disable automatic scroll into view on Element.focus().
Here is the summary of current situation: https://github.com/whatwg/html/pull/2787#issuecomment-338193107
The new dictionary type "FocusOptions" with the “preventScroll" dictionary member is introduced.
The IDL of Element.focus() will change to:
dictionary FocusOptions {
boolean preventScroll = false;
};
void focus(optional FocusOptions options);
If preventScroll is omitted or false, then the element will be scrolled into view with UA-defined manners.
Otherwise, it disables scrolling triggered by focus().
Related tests:
https://github.com/w3c/web-platform-tests/pull/7915
https://github.com/w3c/web-platform-tests/pull/7917
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171020/5198b3e6/attachment-0001.html>
More information about the webkit-unassigned
mailing list