Closed Bug 364585 Opened 18 years ago Closed 16 years ago

CSS box model; 'padding' value are not proper added to height of rendered content

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 248239

People

(Reporter: bobson, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061218 Minefield/3.0a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061218 Minefield/3.0a1

When 'padding' is declared separatly for each one the height cell is not calculated propertly.
Case study here:
http://www.bobson.pl/css-padding-problem/css-padding-problem.html

All of td's with class "td1X" where X is a-f should have heigth 25px.
But not everyone have. Several have 24px instead.

Reproducible: Always

Steps to Reproduce:
1. set cell css "height: 23px; margin: 0px; border: 0px; padding: 0px 0px 2px 0px"

Actual Results:  
rendered cell is 24px height

Expected Results:  
rendered cell should be 25px height
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → Trunk
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.