The style for borders of table cells (only td tested) cannot be changed dynamically. Neither setting the style.border* or changing the className (to change the border) updates the visual state of the border for table cells. This works fine for block and inline elements. Even if this is just a visual bug I think it is a rather serious bug because it is a commonly used task.
Created attachment 27976 [details] Press mouse button on any of the cells and notice that the border does not change
Table reflow/painting problem, over to karnaze.
Assignee: jst → karnaze
The testcase works on the 1st cell of each row but not the 2nd cell. I changed the testcase to have only one row and in the 2nd cell to not do the onmouseup. Mousing on the 2nd cell still did not show the correct border until I minimized and maximized Viewer. Since, the table cell frame is invalidating its entire rect during this kind of reflow, I am suspecting a rendering problem. Reassigning to kmcclusk.
Assignee: karnaze → kmcclusk
Target Milestone: --- → mozilla0.9.1
*** Bug 70756 has been marked as a duplicate of this bug. ***
From bug 70756 (in case this really isn't a dup) - "Even though nsTableCellFrame is invalidating its entire rect, when it gets painted, the dirty rect is not right."
Most of the borders change color when I hold down over them. Portions of some of the borders do not change color. This is most likely a twips->pixel roundoff error when invalidating the bounds for the frame. All frames (x,y) offset must be aligned to pixel boundaries.
Status: NEW → ASSIGNED
It is working correctly in todays build. My change to text frame invalidation may have fixed the problem. Marking bug FIXED.
Status: ASSIGNED → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → FIXED
Target Milestone: mozilla0.9.1 → mozilla0.9
You need to log in before you can comment on or make changes to this bug.