Closed
Bug 275894
Opened 20 years ago
Closed 16 years ago
[BC] borderWidthfor cell not changed in onload event
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: superbolo, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(1 file)
669 bytes,
text/html
|
Details |
I tried to change borderWidth style property in onload body event. But it didn't
work. The code is executed, with no error, but the width doesn't change. If I
change the color, it's ok. If I change the border width in a cript in the body,
it works (and this code is executed before the onload...)
See and try exemple below :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body text="#000000" bgcolor="#FFFFFF"
onload="document.getElementById('matd1').style.border='1px blue solid';">
<FORM>
<STYLE>
table {border-width:0; border-collapse: collapse; border-spacing: 0px ;
border-color: #3B574B; }
td {border-style: solid; border-spacing: 0px ;}
</STYLE>
<TABLE>
<TR>
<TD ID="matd1">case1</TD>
<TD ID="matd2">case2</TD>
<TD>case3</TD>
</TR>
</TABLE>
<SCRIPT TYPE="text/Javascript">
document.getElementById("matd2").style.border="1px red solid";
</SCRIPT>
</FORM>
</BODY>
</HTML>
Comment 1•20 years ago
|
||
Updated•20 years ago
|
Assignee: firefox → nobody
Component: General → Layout
Product: Firefox → Core
QA Contact: firefox.general → core.layout
Version: 1.0 Branch → Trunk
![]() |
||
Comment 2•20 years ago
|
||
Seems very similar to bug 258377
Component: Layout → Layout: Tables
Depends on: 258377
QA Contact: layout → layout.tables
Summary: borderWidth not changed in onload event → [BC] borderWidthfor cell not changed in onload event
Comment 3•19 years ago
|
||
By adding
nsRect rect(0, 0, GetColCount(), GetRowCount());
SetBCDamageArea(rect);
CalcBCBorders();
at the beginning of nsTableFrame::PaintBCBorders, thus forcing the border map
to always be up to date by a ugly hack, I get expected behaviour.
I think there are a lot of bugs in dynamic BC styling that are symptoms of this
lack of update (at least bug 258377, bug 286797, this bug, and bug 319234).
fixed by the checkin for bug 258377
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•