Closed Bug 471829 Opened 16 years ago Closed 16 years ago

block elements with fixed height and non-zero padding does not render bottom padding

Categories

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

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 458296

People

(Reporter: Adam_5Wu, Unassigned)

References

()

Details

(Keywords: css2)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5

A block element (or almost anything else with css style "display: block") with fixed height and none zero padding disregards the bottom padding.

Reproducible: Always

Steps to Reproduce:
<html>
<body>
<div style="padding: 1em; height: 5em; background: #def; overflow: auto">
<div>line 1</div><div>line 2</div><div>line 3</div><div>line 4</div><div>line 5 (there should not be enough space left for bottom padding, scroll bar expected)</div>
</div>
<br/>
<div style="padding: 1em; height: 5em; background: #def; overflow: auto">
<div>line 1</div><div>line 2</div><div>line 3</div><div>line 4</div><div>line 5</div><div>line 6 (scroll to the bottom, there should be a padding of 1em)</div>
</body>
</html>
Actual Results:  
In the first box, although there should not be enough space left for bottom padding, no scroll bar is shown;
In the second box, scroll to the bottom, there is no bottom padding.

Expected Results:  
Explained in the test page
Component: General → Location Bar and Autocomplete
Keywords: css2
Component: Location Bar and Autocomplete → General
Version: unspecified → 3.0 Branch
Summary: block elements with fixed height and padding does not rander bottom padding correctly → block elements with fixed height and non-zero padding does not render bottom padding
Component: General → Layout: Block and Inline
Product: Firefox → Core
QA Contact: general → layout.block-and-inline
Version: 3.0 Branch → unspecified
This is in Shiretoko(1.9.1) but not Minefield(1.9.2).
Status: UNCONFIRMED → RESOLVED
Closed: 16 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: