mirror of
https://github.com/servo/servo.git
synced 2025-07-29 02:00:23 +01:00
element scroll setters
This commit is contained in:
parent
fefdaf76de
commit
11b12f677b
8 changed files with 364 additions and 41 deletions
|
@ -37,6 +37,10 @@ Curabitur elit lacus, bibendum non tempus a, bibendum sit amet ante. Mauris eget
|
|||
<script>
|
||||
var section = document.getElementById("section");
|
||||
|
||||
window.setTimeout(function () {
|
||||
section.scroll(0, 1000);
|
||||
}, 2000)
|
||||
|
||||
window.setInterval(function () {
|
||||
console.log("scrollTop: " + section.scrollTop);
|
||||
console.log("scrollLeft: " + section.scrollLeft);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue