Closed Bug 287823 Opened 20 years ago Closed 20 years ago

Triple right padding until redrawing, in nested divs, overflow=anything but visible, and container w/o padding

Categories

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

x86
All
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: deifo, Unassigned)

References

()

Details

Attachments

(1 file, 2 obsolete files)

User-Agent:       Mozilla/5.0 (compatible; Konqueror/3.4; Linux; es) KHTML/3.4.0 (like Gecko)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.6) Gecko/20050322 Firefox/1.0.2

If a parent <div> has padding equal to 0 and overflow is set to anything but  
visible, and if the child <div> has overflow set to anything but visible, then  
the child <div> shows a right padding about 3 times larger than its normal  
padding.  

Reproducible: Always

Steps to Reproduce:
1. Load a web page with this: <div class="a"><div  
class="b"><div>test</div></div></div>  
2. The first div (a) should have "padding:0; overflow: hidden;"  
3. The second div (b) should have "padding: 10px; overflow: hidden;"  
Actual Results:  
The second div (b) has a right padding about 3 times longer than normal.  
Redrawing the window shows the normal behavior.  

Expected Results:  
The second div (b) should have a right padding equal to the top, left and 
bottom padding. 
Redrawing the window should not modify any behavior. 

Tested on Firefox 1.0.2 on Windows and Linux. 
An easy way to redraw the window is resizing the font, resizing the window, 
etc... 
Overflow can be set to auto, hidden or scroll with the same behavior. 
Konqueror 3.4.0 and IE6 are working as expected. 
 
See also the testcase.
Attached file sample XHTML testcase (obsolete) —
Attached file Sample CSS testcase (obsolete) —
Attached file Testcase
This testcase combines the other two files.
Attachment #178670 - Attachment is obsolete: true
Attachment #178671 - Attachment is obsolete: true
I can't reproduce this with a current trunk build (based on Gecko 1.8beta2,
basically).  David, any chance of trying a trunk build and seeing whether the
problem is still there?
OK, on Gecko 1.8beta2 it works.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: