Closed Bug 193536 Opened 22 years ago Closed 22 years ago

Once background-color is set for a given cell in a table, it cannot be changed again

Categories

(Core :: Layout: Tables, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: maly, Unassigned)

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2.1) Gecko/20021130 Build Identifier: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2.1) Gecko/20021130 Attached is a testcase where individual cells in a table (static and through DOM) have background-color set to green. To create the dynamic table, hit the insert rows button a couple of times to generate a dynamic table. Also each cell has a onmouseover event defined which sets the background-color to blue. In both the dynamically and staticly created tables, the background-color does not change to blue when the mouse goes over the cell. Also when I try to change the background-color on the whole row, the cell with the initial set background-color does not change (there is a documented line in the testcase to uncomment to verify this part). Everything does work fine when background-color is not initially defined for a given cell. If I set the background-color of the entire row, and then modify the background-color of a cell that works also. If I put the rows inside <tbody> in the table for static or dynamic case, it does not makes a difference either. Testcase actually has the rows inside <tbody>, but it should work even without <tbody>. Reproducible: Always Steps to Reproduce: See Above Actual Results: See Above Expected Results: Mozilla should be able to modify the background-color of a cell in a table which already has a background-color set initially.
setting .bgColor does not change the inline style. Inline style rules take precedence over all non-CSS presentational hints (like the bgcolor attribute). This bug is invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: