1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
7 if (window
.testRunner
) {
8 testRunner
.dumpAsText();
9 testRunner
.waitUntilDone();
11 window
.location
='#anchor';
12 setTimeout("finishTest()", 0);
16 if (window
.location
.toString().indexOf("#") == -1) {
17 setTimeout("finishTest()", 0);
20 var message
= "Scroll position is " + (window
.scrollX
== 0 ? "" : "not ") + "at left and "
21 + (window
.scrollY
== 0 ? "" : "not ") + "at top.";
22 document
.getElementById("console").appendChild(document
.createTextNode(message
));
23 if (window
.testRunner
)
24 testRunner
.notifyDone();
28 <body onload=
"test()">
30 <div style=
"padding-left: 100px;">
31 <p>Thisisareallywidelinethatshereatthestartsowehaveahorizontalscrollbar.Thisisareallywidelinethatshereatthestartsowehaveahorizontalscrollbar.Thisisareallywidelinethatshereatthestartsowehaveahorizontalscrollbar.
</p>
32 <p><a name=
"anchor"></a>Anchor is here, and should cause a vertical scroll only, not a horizontal scroll.
</p>
33 <p>So, if the test succeeds, the text below should say that we're at the left but not at the top.
</p>
35 <p style=
"height: 1000px">This is very tall line that's here at the end so we have a vertical scroll bar.
</p>