<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:cdumez@apple.com" title="Chris Dumez <cdumez@apple.com>"> <span class="fn">Chris Dumez</span></a>
</span> changed
<a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - window.scroll() without arguments should throw an error"
href="https://bugs.webkit.org/show_bug.cgi?id=157666">bug 157666</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>ASSIGNED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - window.scroll() without arguments should throw an error"
href="https://bugs.webkit.org/show_bug.cgi?id=157666#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - window.scroll() without arguments should throw an error"
href="https://bugs.webkit.org/show_bug.cgi?id=157666">bug 157666</a>
from <span class="vcard"><a class="email" href="mailto:cdumez@apple.com" title="Chris Dumez <cdumez@apple.com>"> <span class="fn">Chris Dumez</span></a>
</span></b>
<pre>The bug report, as is stated, does not seem correct as per the spec:
<a href="https://drafts.csswg.org/cssom-view/#extensions-to-the-window-interface">https://drafts.csswg.org/cssom-view/#extensions-to-the-window-interface</a>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>