Closed Bug 90425 Opened 23 years ago Closed 23 years ago

background-color on body causes color elsewhere not to inherit

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 87674

People

(Reporter: davisre, Assigned: pierre)

Details

(Whiteboard: DIGBug)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2+)
Gecko/20010703 Netscape6/6.1b1
BuildID:    

Adding a background color to the body (either bgcolor attribute or
background-color in the body's style) causes a color set in a tr's style to stop
being inherited by text in tds.
(Possibly related to http://bugzilla.mozilla.org/show_bug.cgi?id=87103 ?)

Reproducible: Always
Steps to Reproduce:
1.(See HTML below)
2.Note that removing the style from the body OR adding style="color: inherit"
explicitly on the td causes the text to be red.


Actual Results:  text is not red

Expected Results:  text should be red

<html>
<body style="background-color: #FFFFFF">
<table>
    <tr style="color: red">
        <td>I should be red.</td>
    </tr>
</table>
</body>
</html>
Whiteboard: DIGBug
worksforme, linux trunk build 2001-07-15-21.
WFM, win98 Mozilla build 2001 07 16 04, and in 07-14
Hmm, the bug only seems to show up in the branch, then. You can see it in branch 
build (Win2000)  Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) 
Gecko/20010715 Netscape6/6.1 
The original problem (ie. text should be red) is a dup of bug 46480 which was 
fixed on the trunk on 07/06/2001 but I'm not closing the bug yet: I have to dig a 
bit more to see if the presence of some style on the body can change the 
inheritance somewhere else.  In the meanwhile, it allowed me to find bug 91724 
(in quirks mode, tables should not inherit style from parent)


*** This bug has been marked as a duplicate of 87674 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.