[Webkit-unassigned] [Bug 42930] New: Inner div does not resize when outer div overflows and obtains scroll bars

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jul 24 02:43:07 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=42930

           Summary: Inner div does not resize when outer div overflows and
                    obtains scroll bars
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: sjelin at gmail.com


Created an attachment (id=62494)
 --> (https://bugs.webkit.org/attachment.cgi?id=62494)
This is a reduction of the bug I am reporting

Take a look at my attachment first, as it is an example of the error.  If you do not understand what's wrong, try the page in FireFox or IE.

Essentially what's going on is that the effective height of the outer div tag is reduced when a scroll bar is added to the bottom.  However, the inner div tag is unaware of this height reduction, and maintains a height of 100% of the outer div tag's original height.  This in turn means that the inner div tag becomes too tall for the outer div tag, and forces a vertical scroll bar to appear as well, even though the inner div tag is set to be the height of the outer one and no larger.

The span tag & background colors are not necessary for producing the bug.  I simply think they make the bug easier to identify.  The problem occurs when the outer div tag's overflow property is set to "scroll" as well.  I imagine the bug happens with vertical overflow as well, though I have not tested this.  It is of note that if you use the website's body in place of the outer div tag, the bug does NOT occur.  This bug is particularly problematic when the outer div tag is set to "overflow-x: auto; overflow-y: hidden"

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list