Closed Bug 109497 Opened 24 years ago Closed 21 years ago

Scroll-bars inside of scroll-bars

Categories

(Core :: Layout: Block and Inline, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: ryancooley, Unassigned)

References

()

Details

Attachments

(3 files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.5) Gecko/20011011 BuildID: 2001101117 The scroll bars on the right-side and bottom of mozilla can be used to scroll for the most part, but a second set of scroll bars is also displayed just inside of the first set that allows you to scroll another 2 inches or so. Reproducible: Always Steps to Reproduce: 1. Visit thw site: http://readgoodstuff.com/ 2. Look at the pretty extra scroll bars 3. Take over the world.
.
Assignee: asa → hyatt
Component: Browser-General → XP Toolkit/Widgets
QA Contact: doronr → jrgm
Attached image Screenshot of browser
Same with 20011109/WinNT4
confirm win98 2001110903, don't know if it's a bug though this comes from BODY { overflow: auto } in http://readgoodstuff.com/css/style.css ...it doesn't seem to do anything useful in n4, ie55 or moz...?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file testcase
Over to layout. The only (possible) bug here is that the body is not sized correctly to contain its contents. If it is _not_ big enough for the content, then those scrollbars should appear per that css. But why is the body overflowing to start with?
Assignee: hyatt → attinasi
Component: XP Toolkit/Widgets → Layout
QA Contact: jrgm → petersen
Shouldn't body just use the window's scrollbars if it overflows? As in, if the main html body (not a frame) of a window sets overflow : auto, _ignore it_, because that's what the window's scrollbar is for anyway?
No. <body> is a child of <html>. It is not the root element. It is quite possible to give the body a margin, and the main window scrollbar should be _outside_ that margin. Scrollbars are normally within the content area of the element they apply to, so the main window scrollbar should not be the body scrollbar. So one could have an overflowing body without having an overflowing viewport. If you want, try something like: head { display: block } style { display: block } script { display: block; white-space: pre } in a stylesheet on a page with scripts and style elements sometime. That makes the limitations of mixing up overflow on the body and viewport clear.
With build 2001110808 on Mac OS, I only get one scrollbar, but it doesn't actually scroll. I can move the bar up and down, with no effect on the display of the page.
Target Milestone: --- → Future
I get one horizontal scrollbar on initial layout of the testcase which should not be there. Reloading the testcase hides the scrollbar, shift reload does show it again.
Assignee: attinasi → block-and-inline
Component: Layout → Layout: Block & Inline
QA Contact: petersen → ian
Original testcase worksforme because we now propagate overflow values to viewport for root elements....
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: