Closed Bug 19341 Opened 25 years ago Closed 25 years ago

TEXTAREA doesn't take background-color (neither with STYLE nor js)

Categories

(Core :: Layout, defect, P3)

x86
Windows 95
defect

Tracking

()

VERIFIED DUPLICATE of bug 17303

People

(Reporter: martin.honnen, Assigned: buster)

References

()

Details

Attachments

(3 files)

I don't get a background color for a TEXTAREA <STYLE> .lime { background-color: lime; } </STYLE> <SCRIPT> </SCRIPT> </HEAD> <BODY> <FORM NAME="aForm"> <TEXTAREA NAME="aField" CLASS="lime" COLS="20" ROWS="5"> Kibology </TEXTAREA> </FORM> <BUTTON ONCLICK="var f = document.aForm.aField; if (f.style.backgroundColor == '' || f.style.backgroundColor == 'lime') f.style.backgroundColor = 'white'; else f.style.backgroundColor = 'lime';"> toggle color </BUTTON> </BODY> Same settings/code for INPUT TYPE="text" work.
Attached file bug demo
In an attempt to get my bug list in order again, marking all the bugs I have currently as ASSIGNED.
Assignee: vidur → buster
Status: ASSIGNED → NEW
Component: DOM Level 2 → Layout
This is not a DOM issue. Re-assigning to buster and Cc'ing pollmann
Assignee: buster → rods
QA Contact: vidur → chrisd
assigning to rods for evaluation and attaching an additional test case
Attached file form test case
Attached image image for test case
Assignee: rods → buster
Steve, I think this is a dup of a bug you already have.
Status: NEW → ASSIGNED
Summary: TEXTAREA doesn't take background-color (neither with STYLE no js) → TEXTAREA doesn't take background-color (neither with STYLE nor js)
Target Milestone: M14
css-compatibility bug. visual bug only, layout is correct. don't know what milestone these belong in, guessing M14.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Same problem as with the font... There is a hard-coded style rule called PlaintextInitalStyle in nsTextEditRules.cpp that overrides different settings like 'font-family' and 'background-color'. Marked dup of 17303. *** This bug has been marked as a duplicate of 17303 ***
Status: RESOLVED → VERIFIED
Verified as dupe of bug 17303. See Pierre's comment above.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: