Closed
Bug 297988
Opened 20 years ago
Closed 20 years ago
Firefox miscalculates the width of a table cell if a div within it is using CSS padding.
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 258523
People
(Reporter: bugzillaspam, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 First of all, this does not happen in IE or Opera (try it). It happens because firefox isn't counting the padding when it calculates the width of the cell. Firefox has done this at least since 0.9 because that's the first time I tried it and it was doing it then too. It's really evident if you look at this example in a browser: <table cellspacing="4" bgcolor="000" width="300" align="center"><tr><td><div style="background-color:ff0000;width:100%;padding:10px">wefw</div></td></tr></table> Reproducible: Always Steps to Reproduce: 1. Seriously, all you have to do is load the example html I provide into firefox, it will jump right out at you: <table cellspacing="4" bgcolor="000" width="300" align="center"><tr><td><div style="background-color:ff0000;width:100%;padding:10px">wefw</div></td></tr></table> Actual Results: div oversteps the right border of the enclosing table. Expected Results: stay within it like Opera and IE.
Duplicate of bug 258523?
Comment 2•20 years ago
|
||
*** This bug has been marked as a duplicate of 258523 ***
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
•