WebKit Bugzilla
Attachment 348909 Details for
Bug 161612
: Programmatic scrolling on a scrollable body can leave parts of the page unviewable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Testcase
scrolling-funtions-on-body-scrollable-body.html (text/html), 770 bytes, created by
Frédéric Wang (:fredw)
on 2018-09-05 06:55:04 PDT
(
hide
)
Description:
Testcase
Filename:
MIME Type:
Creator:
Frédéric Wang (:fredw)
Created:
2018-09-05 06:55:04 PDT
Size:
770 bytes
patch
obsolete
><html> > <head> > <style> > html { > background-image: repeating-linear-gradient(white, silver 100px, white 100px); > height: 2000px; > overflow: hidden; > } > body { > overflow-y: scroll; > height: 500px; > border: 2px solid green; > padding: 5px; > } > div { > width: 9999px; > height: 9999px; > } > </style> > <script> > function runTest() { > scroller = document.body; > setTimeout(function() { > scroller.scrollTop = 500; > shouldBe("scroller.scrollTop", "500"); > scroller.scrollTo(20, 500); > scroller.scrollTop = 0; > }, 0); > } > </script> > </head> > <body onload="runTest()"> > <div> > </div> > </body> ></html>
<html> <head> <style> html { background-image: repeating-linear-gradient(white, silver 100px, white 100px); height: 2000px; overflow: hidden; } body { overflow-y: scroll; height: 500px; border: 2px solid green; padding: 5px; } div { width: 9999px; height: 9999px; } </style> <script> function runTest() { scroller = document.body; setTimeout(function() { scroller.scrollTop = 500; shouldBe("scroller.scrollTop", "500"); scroller.scrollTo(20, 500); scroller.scrollTop = 0; }, 0); } </script> </head> <body onload="runTest()"> <div> </div> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 161612
:
287981
| 348909