Open Bug 26006 Opened 20 years ago Updated 15 years ago
Element with hidden visibility causes scrollbar
To reproduce: Build: 2000013111, win 98, I am not sure if this is a bug, but see that the big DIV area causes the scrollbar both visible or invisible. This testcases animates the big pane to the left. In the end of the animation the scrollbar will disappear.
reassigning to evaughan for triage
Assignee: trudelle → evaughan
If something is display hidden it still has size. It just doesn't draw itself. This how it is defined in html.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Sorry for the spam, changing QA contact.
Works for Me Platform: PC OS: Windows 98 Build # 2000100508 M18 Trunk Build Marking as Verified
Status: RESOLVED → VERIFIED
The scroll bar is not an indicator of the existence of items in the document markup. It is tool designed to allow the user to view content that does not fit the browser window. If the entire content that should be shown to the user according to its style sheet does fit the browser window, displaying a scroll bar is not only redundant; it eats away precious content space – counterproductive to the browser's main goal (which is displaying web pages, btw). I think a blank page with a scrollbar is just silly. Please make it count only visible elements. And, of course, adjust scroll bar when element visibility changes. I'm sure it's not difficult.
Status: VERIFIED → REOPENED
Resolution: INVALID → ---
That hidden elements affect layout is clear. However, it is a little arbitrary that hidden elements offscreen right force a horizontal scrollbar, while hidden elements offscreen left do not. http://www.w3.org/TR/REC-CSS2/visufx.html#propdef-visibility "The 'visibility' property specifies whether the boxes generated by an element are rendered. Invisible boxes still affect layout (set the 'display' property to 'none' to suppress box generation altogether). Values have the following meanings: visible The generated box is visible. hidden The generated box is invisible (fully transparent), but still affects layout. "
Target Milestone: --- → Future
We've had a longstanding bug that overflow to the left or top doesn't create a scrollbar. See bug 6976.
I see this issue on firefox 1.0.3 on osx, but NOT on firefox on windows. See f.x. http://folk.uio.no/kajh/tmp/26006.html -Kaj :)
You need to log in before you can comment on or make changes to this bug.