Open Bug 364184 Opened 19 years ago Updated 3 years ago

Need to add testcase to one of the regression suites

Categories

(Core :: Layout, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: Waldo, Unassigned)

References

()

Details

Attachments

(1 file)

There was a thread in m.d.t.layout about an issue with scrollTo; see URL. We should get a test for in in regression tests so it doesn't break in the future (it's apparently fixed on trunk, according to the thread). I'll attached the provided regression test in a second. Note that I'm not sure what the buggy behavior or expected behaviors are, because at the moment I don't have easy access to Firefox 2.0 or a trunk build to test.
Attached file Provided testcase
I don't know what expected or buggy behavior for this testcase is; reread the thread if necessary to determine the right behavior. Also, the component for this is probably wrong; feel free to move as necessary.
Flags: in-testsuite?
On load of the "Provided testcase" document, click the "here" link at upper left so as to be scrolled down and to the right. At that position, click the "click me" link to set the documentElement ("html") overflow to "hidden" with consequent removal of the window's vertical and horizontal scroll bars. With Fx v2.0 or earlier, you also get an inappropriate "reset" (scroll up and to the left) to the document's 0,0 position. The trunk (Minefield) does not presently have this bug. Like IE and Opera, Minefield shows only a minor shift of the document associated with the slight increase in viewport size associated with the removal of the scroll bars. Hopefully, there will not be a regression before the Fx v3.0 release.
Note that the testcase also brings out a bug which is still present in the trunk. When the documentElement's overflow is set to "hidden" and the window's scroll bars are eliminated, the paging and scrolling keys still produce paging or scrolling of the document. IE7 does "the right thing" and automatically disables paging or scrolling by any means until the overflow is restored (via the "restore" link at lower right in the testcase). Opera9 (mis)behaves like Fx2 and the trunk.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: