Closed Bug 2419 Opened 26 years ago Closed 25 years ago

Rendering a strong tag adds vertical space to that line of text.

Categories

(Core :: DOM: HTML Parser, defect, P5)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 991

People

(Reporter: rkasper, Assigned: rickg)

Details

Rendering a strong tag add vertical space to that line of text. (It makes my tables look messy [oh no!] ) Both NSC 4.5 and IE 5.0 don't add the space so I thought it might be a bug. Here is the page: <html> <head> <title>File System Space</title> </head> <body> <BODY bgcolor='#ffffff' text='#000000' link='#0000FF' vlink='#52188C' alink='#FF0000' > <font size=2> <font size=2 face=Lucida-Console> <TABLE BORDER=0 cellpadding=3 cellspacing=0> <tr><td> <TABLE BORDER=0 cellpadding=3 cellspacing=0> <tr bgcolor=#000000><th colspan=6 align=center><FONT COLOR=#FFFFCC><font size=1 face="Lucida Console,Tahoma,sans-serif"> Output of df with size info in MB not K! &nbsp;</th></tr> <tr bgcolor=#000000> <th align=left><FONT COLOR=#FFFFCC><font size=1 face="Lucida Console,Tahoma,sans-serif">Filesystem&nbsp;</th> <th align=right><FONT COLOR=#FFFFCC><font size=1 face="Lucida Console,Tahoma,sans-serif">Size&nbsp;</th> <th align=right><FONT COLOR=#FFFFCC><font size=1 face="Lucida Console,Tahoma,sans-serif">Used&nbsp;</th> <th align=right><FONT COLOR=#FFFFCC><font size=1 face="Lucida Console,Tahoma,sans-serif">Avail&nbsp;</th> <th align=right><FONT COLOR=#FFFFCC><font size=1 face="Lucida Console,Tahoma,sans-serif">%&nbsp;Used&nbsp;</th> <th align=left><FONT COLOR=#FFFFCC><font size=1 face="Lucida Console,Tahoma,sans-serif">Mounted On&nbsp;</th> </tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/dev/vx/dsk/rootvol&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">994.51&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">476.02&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">458.81&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">51%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/proc&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/proc&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">fd&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/dev/fd&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/dev/vx/dsk/var&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">994.51&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">776.33&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">158.5&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif"><strong><font color=#FFA800>84%</strong></font>&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/var&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/dev/vx/dsk/opt&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">994.51&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">358.63&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">576.2&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">39%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/opt&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/dev/vx/dsk/export&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">994.51&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">229.28&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">705.56&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">25%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/export&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">swap&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1402.81&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">853.65&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">549.15&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">61%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/tmp&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/dev/vx/dsk/datadg/sybase&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">959.98&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">499.28&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">364.69&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">58%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/usr/sybase&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/dev/vx/dsk/datadg/data&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">959.98&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">34.93&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">829.04&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">5%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/usr/sybase/data&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/dev/vx/dsk/datadg/diskdump1&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1919.97&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1727.98&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif"><strong><font color=red>100%</strong></font>&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/usr/sybase/diskdump1&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/dev/vx/dsk/datadg/diskdump2&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1919.97&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1302.45&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">425.52&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">76%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/usr/sybase/diskdump2&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/dev/vx/dsk/datadg/logdump1&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1919.97&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1207&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">520.97&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">70%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/usr/sybase/logdump1&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/dev/vx/dsk/datadg/logdump2&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1919.97&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1208.8&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">519.17&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">70%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/usr/sybase/logdump2&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/dev/vx/dsk/datadg/staging&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">22079.89&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">12.63&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">19859.26&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/staging&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/vol/dev/dsk/c1t6d0/sol_2_6_598_sparc_smcc_svr/s5&nbs p;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0.98&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0.88&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/cdrom/sol_2_6_598_sparc_smcc_svr/s5&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/vol/dev/dsk/c1t6d0/sol_2_6_598_sparc_smcc_svr/s4&nbs p;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0.98&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0.88&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/cdrom/sol_2_6_598_sparc_smcc_svr/s4&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/vol/dev/dsk/c1t6d0/sol_2_6_598_sparc_smcc_svr/s3&nbs p;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0.98&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0.88&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/cdrom/sol_2_6_598_sparc_smcc_svr/s3&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/vol/dev/dsk/c1t6d0/sol_2_6_598_sparc_smcc_svr/s2&nbs p;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0.98&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0.88&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">1%&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/cdrom/sol_2_6_598_sparc_smcc_svr/s2&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/vol/dev/dsk/c1t6d0/sol_2_6_598_sparc_smcc_svr/s1&nbs p;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">46.84&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">37.33&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">4.83&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif"><strong><font color=red>89%</strong></font>&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/cdrom/sol_2_6_598_sparc_smcc_svr/s1&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/vol/dev/dsk/c1t6d0/sol_2_6_598_sparc_smcc_svr/s0&nbs p;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">482.42&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">482.42&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif"><strong><font color=red>100%</strong></font>&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/cdrom/sol_2_6_598_sparc_smcc_svr/s0&nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">sf-ss4-2:/cdrom/sybasecd&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">110.95&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">110.95&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif">0&nbsp;</td><td align=right><font size=1 face="Lucida Console,Tahoma,sans-serif"><strong><font color=red>100%</strong></font>&nbsp;</td><td><font size=1 face="Lucida Console,Tahoma,sans-serif">/mnt&nbsp;</td></tr> <tr bgcolor=#000000><th colspan=6 align=center><FONT COLOR=#FFFFCC><font size=1 face="Lucida Console,Tahoma,sans-serif"> <hr>&nbsp;</th></tr> </table> </td></tr> </table> <br> <br><TABLE BORDER=0 cellpadding=3 cellspacing=0> <tr><td> <TABLE BORDER=0 cellpadding=3 cellspacing=0> <tr bgcolor=#000000><th align=center><FONT COLOR=#FFFFCC><font size=1 face="Lucida Console,Tahoma,sans-serif"> cgi times&nbsp;</th></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">Start cgi at Fri Jan 15 02:50:18 PST 1999 &nbsp;</td></tr> <tr bgcolor=#EAEAEA><td><font size=1 face="Lucida Console,Tahoma,sans-serif">&nbsp;&nbsp;End cgi at Fri Jan 15 02:50:18 PST 1999 </tr> <tr bgcolor=#000000><th align=center><FONT COLOR=#FFFFCC><font size=1 face="Lucida Console,Tahoma,sans-serif"> <hr>&nbsp;</th></tr> </table> </td></tr> </table> <br><font size=2 face=Lucida Console> <br><pre>0.06,0.01,0,0.01 0.07,0.01,0.03,0.06 </pre> </body> </html>
Summary: Rendering a strong tag add vertical space to that line of text. → Rendering a strong tag adds vertical space to that line of text.
Assignee: michaelp → troy
Component: Rendering → Layout
Assignee: troy → peterl
Peter, the issue here seems to be that the <strong> tag is causing the font to be larger than the rest of the fonts and that inflates the line height. Are we choosing a larger font size than we should for <strong> (which is 'font-weight: bolder;' in ua.css)
The syntax for the <TD> cells (without) <STRONG> is : <td><font size=1 face="sans-serif">39%&nbsp;</td></tr> The syntax for the <TD> cells (with) <STRONG> is : <td><font size=1 face="sans-serif"><strong><font color=#FFA800>100%</strong></font>&nbsp;</td> Or, broken out for clarity ... <td> <font size=1 face="sans-serif"> <strong> <font color=red>100% </strong> </font>&nbsp; </td> If you change the '&nbsp;' to 'FOO', you will see that it is the 'FOO' (or '&nbsp;') that is "oversized" on each line that includes a <STRONG> (i.e., the <FONT SIZE=1> has been closed out (probably by the unbalanced <STRONG> nesting). The syntax is admittedly ambiguous, and I'm not sure what the correct behaviour should be (except for people expecting NAV4 compatibility).
per leger, assigning QA contacts to all open bugs without QA contacts according to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
Status: NEW → ASSIGNED
Target Milestone: M5
Assignee: peterl → rickg
Status: ASSIGNED → NEW
Component: Layout → Parser
Target Milestone: M5
This is a parser/DTD issue.
Status: NEW → ASSIGNED
Target Milestone: M6
Assignee: rickg → peterl
Status: ASSIGNED → NEW
I think this is yours now.
Assignee: peterl → rickg
Still a parser/DTD issue. In the recuded case: <td> <font size=1 face="sans-serif"> <strong> <font color=red>100% </strong> </font>&nbsp; </td> the final &nbsp is outside the <font size=1> in our content model. Nav treats it as inside.
*** This bug has been marked as a duplicate of 991 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Agreed. This bug is a duplicated of 991.
You need to log in before you can comment on or make changes to this bug.