Closed Bug 196765 Opened 23 years ago Closed 23 years ago

Table row height not adjustable to less than 22px

Categories

(Core :: Layout: Tables, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

()

RESOLVED DUPLICATE of bug 22274

People

(Reporter: gigalo, Unassigned)

References

()

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC) Build Identifier: Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC) Using the following encoding: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> On single cell table on the top left of the test page, the cell/row should be rendered with no space between the blue line and the top and bottom of the cell. The way it is now being rendered formats the cell such that there is a full 22 pixel minimum height. When rendereing for xhtml-transitional, the problem does not exhibit itself. Reproducible: Always Steps to Reproduce: Get the current mozilla (1.3b) to render: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns=http://www.w3.org/1999/xhtml xml:lang="en" lang="en"> <head> </head> <body marginheight="2" marginwidth="2" topmargin="2" leftmargin="2"> <table border="1" cellpadding="0" cellspacing="0"> <tr> <td style="height: 1px"><img src="images/pixel_blue.gif" width="50" height="1" /></td> </tr> </table> </body> </html> Actual Results: Problem as described. Expected Results: As described earlier Let it be known that even though this seems to be classified as a trivial bug, it prevents me from targeting Mozilla at this time. All tables render improperly under strict. I sincerely love this project.
Since the file is served with an HTML mime type we handle it as HTML and this is therefore not an XML issue. Reassigning to Layout: Tables.
Component: XML → Layout: Tables
Retry...
Assignee: heikki → table
QA Contact: ashishbhatt → madhur
It sounds like the problem is line height as image is an inline element... the following should solve the problem: <td style="height: 1px"><img src="images/pixel_blue.gif" width="50" height="1" style="display:block" /></td> if that does it this bug should be marked invalid. [see this for more info: http://devedge.netscape.com/viewsource/2002/img-table/ ]
There's a decent article at http://devedge.netscape.com/viewsource/2002/img-table/ explaining what's going on here and why this is the correct rendering in standards mode. *** This bug has been marked as a duplicate of 22274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.