Closed Bug 286814 Opened 20 years ago Closed 20 years ago

Style "overflow:hidden" doubles padding of nested div.

Categories

(Core :: CSS Parsing and Computation, defect)

1.0 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 284242

People

(Reporter: croesus, Assigned: dbaron)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1

The style rule "overflow:hidden" applied to an element nested in a container of
fixed width doubles the specified padding value of the nested element in
Firefox. "Overflow:visible" does not double the padding.

Reproducible: Always

Steps to Reproduce:
Paste the following demonstration into any HTML document.


<div Style="width:400px; border:medium solid Lime">
	<div Style="padding-right:200px; overflow:visible;">
		<p>Congress shall make no law respecting an establishment of religion, or
prohibiting the free exercise thereof; or abridging the freedom of speech...</p>
	</div>
</div>

<div Style="width:400px; border:medium solid Lime">
	<div Style="padding-right:200px; overflow:hidden;">
		<p>Congress shall make no law respecting an establishment of religion, or
prohibiting the free exercise thereof; or abridging the freedom of speech...</p>
	</div>
</div>

Actual Results:  
The top box with "overflow:visible" produces the normal expected padding. The
lower box with "overflow:hidden" doubles the padding.  

Expected Results:  
The lower boxe and its contents should be identical to the upper box.
I can reproduce this. The padding-right and width seem crucial here. If I remove
the width and then shrink the window horizontally, the bug also appears.
Assignee: firefox → dbaron
Component: General → Style System (CSS)
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.0 Branch
Attached file Testcase
*** This bug has been marked as a duplicate of 284242 ***

*** This bug has been marked as a duplicate of 284242 ***
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.

Attachment

General

Creator:
Created:
Updated:
Size: