Closed
Bug 1465722
Opened 6 years ago
Closed 4 years ago
Doc does not mention passing an options object
Categories
(Developer Documentation Graveyard :: General, enhancement, P3)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: hiddensnorespond, Assigned: cmills)
References
()
Details
:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details Similar to window.scroll, window.scrollBy supports passing an options object instead of coordinates. window.scrollBy(x, y) window.scrollBy(options) Tested in Firefox 60.0.1 and Google Chrome 66.0.3359.181 See: https://developer.mozilla.org/en-US/docs/Web/API/Window/scroll
Updated•6 years ago
|
Assignee: nobody → cmills
Priority: -- → P1
Assignee | ||
Comment 1•6 years ago
|
||
This is a good point — thanks for reporting! I've updated the scrollBy page now — does it look OK to you?
Priority: P1 → --
Reporter | ||
Comment 2•6 years ago
|
||
Thanks, looks good now. Minor detail: The docs for scroll and scrollBy use different syntax boxes, so one has line numbers and the other does not. Maybe they should be consistent. [1] https://developer.mozilla.org/en-US/docs/Web/API/Window/scroll uses ``<pre class="syntaxbox">`` [2] https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollBy uses ``<pre class="eval line-numbers language-html"><code class=" language-html">``
Updated•6 years ago
|
Priority: -- → P3
Comment 3•4 years ago
|
||
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•