Closed Bug 1609 Opened 27 years ago Closed 27 years ago

main topic area table not floating

Categories

(Core :: DOM: Core & HTML, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: buster, Assigned: buster)

References

()

Details

a whole bunch of this document is missing -- the entire main topic section. It looks like its mostly javascript-driven.
Assignee: vidur → buster
Works for me. Either the page has changed (very likely) or the display problems have nothing to do with script (also likely, since the script isn't used for document.writes). There are some table problems, though. :)
Assignee: buster → karnaze
Status: ASSIGNED → NEW
assigned to karnaze. The errant table is at the top of the page in the middle section. The images aren't lining up right because either the upper table is too wide or the one beneath is too narrow. Could be a problem with the table content. Notice the font metrics are wrong for some of the text. Work with Peter and Rick on that, then if the problem persists we can look at table layout.
This may be useful (or ... not). At least part of the problem is that declaring IMG ALIGN={LEFT|RIGHT} throws a 3px margin onto the left and right of the IMG. This then blows out the table width and causes the mis-alignment with the following table on 'abcnews.go.com' (i.e., the poll). If you hack up a local copy of abcnews and delete the 'align=left' on the <img src="/images/bluedot.gif"> then the tables fall in line. Also, try removing the commenting out of the IMG style below to force the margin to 0px. (Of course, you won't really see this test case and the misalignment in Nav4 (no TD style)). (Tested on nightly build Jan 5 99 Win95 non-debug). ------------------------------ <html><head><style type "text/css"><!- TD.one {border: solid blue 1px;} TD.two {border: solid green 1px;} TD.three {border: solid red 1px;} TD.four {border: solid cyan 1px;} TD.five {border: solid black 1px;} /* IMG {margin: 0px;} */ --></style></head><body> <p>The following tables:<ol> <li>table is 340px and contains only text <li>table is 340px and contains IMG with no ALIGN=LEFT|RIGHT|CENTER <li>table is 340px wide and declares IMG ALIGN=CENTER <li>table should be 340px wide, but IMG ALIGN=LEFT introduces 3px margins (x2) <li>table should be 340px wide, but IMG ALIGN=RIGHT introduces 3px margins (x2) <li>table is 346px wide </ol></p> <table width=340 cellpadding=0 cellspacing=0> <tr><td class="one" valign=center width=340> <p>This table is 340px wide</p> </td></tr> </table> <table width=340 cellpadding=0 cellspacing=0> <tr><td class="two" valign=center width=340> <br><IMG src="http://abcnews.go.com/images/bluedot.gif" width=340 height=1><br clear="all"><br> </td></tr> </table> <table width=340 cellpadding=0 cellspacing=0> <tr><td class="five" valign=center width=340> <br><IMG src="http://abcnews.go.com/images/bluedot.gif" width=340 height=1 ALIGN=CENTER><br clear="all"><br> </td></tr> </table> <table width=340 cellpadding=0 cellspacing=0> <tr><td class="three" valign=center width=340> <br><IMG src="http://abcnews.go.com/images/bluedot.gif" width=340 height=1 ALIGN=LEFT><br clear="all"><br> </td></tr> </table> <table width=340 cellpadding=0 cellspacing=0> <tr><td class="four" valign=center width=340> <br><IMG src="http://abcnews.go.com/images/bluedot.gif" width=340 height=1 ALIGN=RIGHT><br clear="all"><br> </td></tr> </table> <table width=346 cellpadding=0 cellspacing=0> <tr><td class="five" valign=center width=346> <br><IMG src="http://abcnews.go.com/images/bluedot.gif" width=346 height=1><br clear="all"><br> </td></tr> </table> </body> </html> ------------------------------
Status: NEW → ASSIGNED
Setting all current Open Critical and Major to M3
per leger, assigning QA contacts to all open bugs without QA contacts according to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
QA Contact: 4015 → 4110
It doesn't look like a DOM issue. QA contact re-assigned to Tables owner.
There is a floating table (nested) that is not being handled properly. The following simple extraction from the page illustrates the problem. I'm changing the summary and assigning this to Troy, CCing Kipp since Troy is on vacation this week. <html> <body> <table width=170 cellpadding="2" cellspacing=0 BORDER=0 align=left> <tr> <td align=right> <a href="/sections/world/DailyNews/china_us990312.html"> <img src="http://www.abcnews.go.com/media/FrontPage/images/illo_missiles990309_fp.gif " width=170 height=120 vspace=0 hspace=3 BORDER=0 alt="china"></a><br> </td> </tr> </table> <font size=1 face="geneva, arial, helvetica"><b>T O P &nbsp; S T O R Y</b></font><br> </body> </html>
Assignee: karnaze → troy
Status: ASSIGNED → NEW
Summary: main topic area completely empty → main topic area table not floating
forgot to change the summary.
moving to m4
Assignee: troy → kipp
Status: NEW → ASSIGNED
Priority: P1 → P2
P1's are crashers/blockers. reprioritizing.
Status: ASSIGNED → RESOLVED
Closed: 27 years ago
Resolution: --- → FIXED
This page now reflows properly.
Whiteboard: 3/23 build on Windows platforms demonstrated same bug behavior. Check again on 3/25 build before reopening bug.
Tested using 3/23 build on all Windows platform. Bug behavior still there. Will check again with 3/25 build before reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Using the 3/26 build on Win NT with the test case described in the 1/11 comments, the extra pixels are still introduced with an image alignment. Reopening bug.
Status: REOPENED → ASSIGNED
The URL below demonstrates the problem described in 1/11 comments and the basis for reopening the bug: http://slip/projects/marvin/bugs/1609.html
For the test case ChrisD added at the end, some debug output confirms the image is claiming different dimensions based on its alignment attribute. During pass1 reflow, the image in table 3 (align=center) claims (width, height): desiredSize=(5160,855) and maxElementSize=(5100,285) The image in table 4 (align=left) claims: desiredSize=(5190, 855) and maxElementSize=(5190,15). This accounts for the differences in table widths. It's odd that the desired widths vary by 30, but the maxElementWidths vary by 190. Also, the maxElementSize heights look wrong. This can all be seen by setting gsDebug=PR_TRUE in nsTableCellFrame.cpp.
Status: ASSIGNED → RESOLVED
Closed: 27 years ago27 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Closing out this bug for the original problem regarding the main topic area table of the 'abcnews' page. Will look further into the pixel issue brought up in 1/11/99 comments
Whiteboard: 3/23 build on Windows platforms demonstrated same bug behavior. Check again on 3/25 build before reopening bug.
denying in-testsuite, can't find test case.
Flags: in-testsuite-
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.