Closed Bug 286902 Opened 19 years ago Closed 19 years ago

overflow: hidden causes nested absolute blocks to compute width incorrectly

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 282754

People

(Reporter: ldavismead, Unassigned)

Details

(Keywords: testcase)

Attachments

(5 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050319

In an absolute block with overflow:  hidden, a nested absolute block will have
zero width when nested block's width is based on parent.

Reproducible: Always

Steps to Reproduce:
See test case.
Actual Results:  
The block containing "foo" is completely collapsed (but its border is visible,
and its content overflows).

Expected Results:  
The block containing "foo" should be entirely visible.
Keywords: testcase
Attached file stylesheet
Attached file xml document
This renders as expected with the old layout engine.
Attached image rendered as reported
I just discovered and can confirm this bug report (was about to file it myself).
 I have a very simple layout which I'll attach which is my version of showing
the bug.  The layout should show a small box which is 90% purple, with a 10%
vertical strip on the right of blue.  In latest firefox, it is all blue (the
purple div, which is nested exactly as the original poster states, is an
absolutely positioned nested element of a containing div block which has
overflow hidden set, and the result is a zero width div in latest build).  It
works in Firefox 1.0.1 and ie 6, but not in yesterday's daily build:

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050319 Firefox/1.0+

very simple test case should render a square 100x100 pixels, purple in left
90%, with a blue strip occupying the rightmost 10%, as a vertical strip.  in
latest ff, it renders entirely blue.
Fixed a few weeks ago...

*** This bug has been marked as a duplicate of 282754 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 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: