Closed Bug 498257 Opened 16 years ago Closed 16 years ago

video element below bottom of viewport causes overlong scrollbar

Categories

(Core :: Layout, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 498593

People

(Reporter: kinetik, Unassigned)

References

()

Details

Attachments

(1 file)

Attached file testcase
I noticed this in a wild at the above URL. A simple testcase is attached, you may need to add more <br>s to cause the <video> element to end below the viewport. As written, it works for me with a 900 pixel tall viewport. Note that the width/height and background colour aren't necessary to reproduce, but make it easy to swap out for an <img> (where the problem doesn't occur).
Note that with my testcase, the scrollbar only moves as far as the visible document. With the original bug URL, it moves beyond the end of the scrollbar trough. And on one reload of the original URL, the scrollbar was fine, maybe affected by incremental layout?
I saw this happen at a page that doesn't contain a video element: http://community.livejournal.com/evan_tech/263952.html (the bug doesn't seem to happen very often on that page, so it's not a very good testcase). I also tested the attached testcase on Windows 7 with a nightly build and saw similar behaviour, so it's not a Mac-only problem. Debugging it on my Mac a little, it turns out that when the scrollbar is rendered incorrectly with the attached testcase, nsNativeThemeCocoa::GetScrollbarDrawInfo is using the default value for maxpos because the attribute isn't been set on the element.
Component: Video/Audio → Layout
OS: Mac OS X → All
QA Contact: video.audio → layout
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: