Closed Bug 144894 Opened 23 years ago Closed 22 years ago

inline element padding affects table cell height

Categories

(Core :: Layout, defect, P2)

x86
Windows 2000
defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: dima_rogozin, Assigned: dbaron)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) BuildID: I paste the html example in "How to reproduce" box. You may need pixel.gif - transparent one pixel gif image. If you remove padding attribute from a.menu_dropdown_list style the table renders correctly. But with the padding it is too narrow. (I have large fonts if it matters) Reproducible: Always Steps to Reproduce: <html> <style> td.menu_dropdown { background-color: #0692de } a.menu_dropdown_list { color: black; background-color: #e6e6e6; font-size: 9pt; text-decoration: none; padding: 3px } a.menu_dropdown_list:hover { background-color: #a6cced } td.menu_dropdown_separator { color: black; background-color: #c6c6c6; font-size: 9pt; font-weight: bold; width: 100%; padding: 2px } </style> <table cellpadding=0 cellspacing=0 border=0> <tr><td colspan=3 class=menu_dropdown><img src="pixel.gif" width=1 height=1 border=0></td></tr> <tr><td class=menu_dropdown><img src="pixel.gif" width=1 height=1 border=0></td> <td nowrap class=menu_dropdown_separator>Document Tools</td> <td class=menu_dropdown><img src="pixel.gif" width=1 height=1 border=0></td></tr> <tr><td colspan=3 class=menu_dropdown><img src="pixel.gif" width=1 height=1 border=0></td></tr> <tr><td class=menu_dropdown><img src="pixel.gif" width=1 height=1 border=0></td> <tr><td class=menu_dropdown><img src="pixel.gif" width=1 height=1 border=0></td> <td nowrap><a class=menu_dropdown_list href="#">Lock Segments</a></td> <td class=menu_dropdown><img src="pixel.gif" width=1 height=1 border=0></td></tr> <tr><td colspan=3 class=menu_dropdown><img src="pixel.gif" width=1 height=1 border=0></td></tr> <tr><td class=menu_dropdown><img src="pixel.gif" width=1 height=1 border=0></td> <td nowrap><a class=menu_dropdown_list href="#">UnLock Segments</a></td> <td class=menu_dropdown><img src="pixel.gif" width=1 height=1 border=0></td></tr> <tr><td colspan=3 class=menu_dropdown><img src="pixel.gif" width=1 height=1 border=0></td></tr> </table> </html>
to tables.
Assignee: sgehani → karnaze
Component: XP Apps → HTMLTables
QA Contact: paw → amar
Attached file Testcase
Keywords: testcase
The padding is on the span and the 2nd example in the test case doesn't even have a table. ->layout
Assignee: karnaze → attinasi
Component: HTMLTables → Layout
QA Contact: amar → petersen
Ignore the 1st part of my last comment. In the table part of the testcase, the table reflow looks ok, but the span (not shown) is ending up larger than the cell. tblO 01A7B798 r=0 a=6180,UC c=0,0 cnt=15 tbl 01A7B960 r=0 a=6180,UC c=UC,UC cnt=16 rowG 01A4BFF0 r=0 a=UC,UC c=UC,UC cnt=17 row 01A7BC98 r=0 a=UC,UC c=UC,UC cnt=18 cell 01A7BE38 r=0 a=UC,UC c=UC,UC cnt=19 block 01A7BE98 r=0 a=UC,UC c=UC,UC cnt=20 block 01A7BE98 d=3810,742 me=1230 cell 01A7BE38 d=3870,810 me=1290 row 01A7BC98 d=UC,810 rowG 01A4BFF0 d=UC,810 rowG 01A4BFF0 r=2 a=3930,UC c=3930,UC cnt=25 row 01A7BC98 r=2 a=3930,UC c=3930,UC cnt=26 cell 01A7BE38 r=2 a=3870,UC c=3810,UC cnt=27 block 01A7BE98 r=2 a=3810,UC c=3810,UC cnt=28 block 01A7BE98 d=3810,742 cell 01A7BE38 d=3870,810 row 01A7BC98 d=3930,810 rowG 01A4BFF0 d=3930,810 tbl 01A7B960 d=3960,900 tblO 01A7B798 d=3960,900
What the heck does it take to confirm a bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
The bug here is that it is counted -- the vertical padding should never affect layout -- one must change the line-height in order to affect the layout. This is probably a bug in tables incorrectly using the overflow area for determining cell size.
Summary: padding attribute is not counted when calculating table cell height → inline element padding affects table cell height
Priority: -- → P2
Target Milestone: --- → Future
Taking.
Assignee: attinasi → dbaron
Depends on: 172896
Fixed by checkin of bug 172896.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
*** Bug 191008 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: