12 lines
440 B
HTML
12 lines
440 B
HTML
<html>
|
|
<body><div style="overflow:auto;width:200px;height:200px;">
|
|
</div>
|
|
|
|
The word 'PASSED' should be scrolled into view above. If you don't see it the test has failed.
|
|
|
|
<script>
|
|
document.body.firstChild.innerHTML = "<div style='padding-top:200px;width:200px;padding-left:200px; height:200px;background-color:green;color:white'>PASSED</div>";
|
|
document.body.firstChild.scrollLeft = 200;
|
|
document.body.firstChild.scrollTop = 200;
|
|
</script>
|