Closed Bug 229891 Opened 22 years ago Closed 21 years ago

Table cell has inconsistent length during multiple reloads

Categories

(Core :: Layout: Tables, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: fpwoshg, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(2 files, 2 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20031231 Firebird/0.7+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20031231 Firebird/0.7+ The cell containing the marquee at http://www.shadowgames.net/ is longer on some reloads (234px), than on other reloads (204px). Reproducible: Sometimes Steps to Reproduce: 1. Visit http://www.shadowgames.net/ 2. Reload page until problem appears. Actual Results: After page loading, the cell containing the marquee can have one of two different lengths. Expected Results: After page loading, the cell containing the marquee should always be the same length. Originally reported: http://forums.mozillazine.org/viewtopic.php?t=43281 The problem is not due to the server, the marquee or any scripting, see reduced testcase in next comment.
The first cell sometimes appears to be 0 width, sometimes a few pixels wider. The wider version appears more often when loading over the Internet than it does when loading locally. The title="AAA..." attributes are there to replace the long event handler attributes in the original page since the bug doesn't seem to occur when they are removed. I'm not sure if this indicates a problem with parsing large attributes or if they are just causing the page to take longer to load (however moving the attributes into comments so the page is the same size but without the large attributes seems to prevent the bug from occurring).
pike could you try add <script>var v = document.body.offsetHeight;</script> somewhere in the script to make the behaviour more reproducible?
Testcase with <script type="text/javascript">var v = document.body.offsetHeight;</script> added inside first table cell.
I can't reproduce this bug. I reloaded the site in the description and both testcases dozens of times. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040101 Firebird/0.7+ (aebrahim)
This is trivial to reproduce: load attachment 138279 [details], and then text zoom in and out, and notice the change.
Attached file simpler testcase
with the JS trick, the title attribute isn't needed: <table border="1"> <tr> <td><script type="text/javascript">document.body.offsetHeight;</script></td> </tr> <tr><td></td></tr> </table>
Attachment #138276 - Attachment is obsolete: true
Attachment #138279 - Attachment is obsolete: true
confirmed with linux trunk 2003123109
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
OS: Windows XP → All
The testcase triggers the code at http://lxr.mozilla.org/seamonkey/source/layout/html/table/src/nsTableCellFrame.cpp#917 . This code seems wrong to me and the intentions of this code are mysterious for me.
Depends on: 198113
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050524 Firefox/1.0+ Using the above build I can no longer reproduce this issue (with any testcase or using text zoom as described in comment 5). Can anyone else confirm that this has been fixed?
worksforme too with linux trunk 2005052401 resolving WFM
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: