[Webkit-unassigned] [Bug 157666] window.scroll() without arguments should throw an error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 13 09:27:23 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=157666
Chris Dumez <cdumez at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #1 from Chris Dumez <cdumez at apple.com> ---
The bug report, as is stated, does not seem correct as per the spec:
https://drafts.csswg.org/cssom-view/#extensions-to-the-window-interface
The spec define 2 scroll() functions:
void scroll(optional ScrollToOptions options);
void scroll(unrestricted double x, unrestricted double y);
So if you call scroll() function without parameter, it should call the first one.
However, our behavior is incorrect in this case I believe. It looks like we are supposed to use the current's viewport position as x/y but we use 0/0 instead. So I think we should not scroll instead of scrolling to the top-left.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160513/8957a66a/attachment.html>
More information about the webkit-unassigned
mailing list