Closed
Bug 286902
Opened 20 years ago
Closed 20 years ago
overflow: hidden causes nested absolute blocks to compute width incorrectly
Categories
(Core :: Layout, defect)
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.
Reporter | ||
Comment 1•20 years ago
|
||
Reporter | ||
Comment 2•20 years ago
|
||
Reporter | ||
Comment 3•20 years ago
|
||
This renders as expected with the old layout engine.
Reporter | ||
Comment 4•20 years ago
|
||
Comment 5•20 years ago
|
||
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+
Comment 6•20 years ago
|
||
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.
Comment 7•20 years ago
|
||
Fixed a few weeks ago...
*** This bug has been marked as a duplicate of 282754 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•