Closed
Bug 319234
Opened 19 years ago
Closed 16 years ago
[BC] js borders ignored when borderCollapse hardcoded
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: danswer, Unassigned)
Details
(Keywords: testcase)
Attachments
(3 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051024 Firefox/1.6a1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051024 Firefox/1.6a1 I have a table and I want to make one of the cells in the table have a red border. If I set the borderBottom style with javascript, but have <table style="border-collapse:collapse"> then the borderBottom is not rendered. I am submitting the non working example. I am also submitting two situations where the red border is rendered: namely, where both the borderBottom and borderCollapse are set either via javascript or HTML. The red border is drawn in all three cases with IE 6. Csaba Gabor from Vienna Reproducible: Always Steps to Reproduce: The not working example: <html><head><title>Not Working: red border missing </title></head> <body onload='init()'> <table id=tab border style="border-collapse:collapse"> <tr><td colspan=3 align=center> Red border not drawn when borderCollapse hardcoded via HTML<br> and borderBottom set via javascript</td></tr> <tr><td>row 1, col 0</td><td>row 1, col 1</td> <td>row 1, col 2</td></tr> </table> <script type='text/javascript'> function init() { var tbl=document.getElementById('tab'); tbl.rows[0].cells[0].style.borderBottom = "solid 3px red"; } </script> </body> </html>
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Comment 2•19 years ago
|
||
Reporter | ||
Comment 3•19 years ago
|
||
Keywords: testcase
Summary: js borders ignored when borderCollapse hardcoded → [BC] js borders ignored when borderCollapse hardcoded
Comment 4•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 (attachment 205091 [details] works) 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, bug 275894, 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
•