Closed Bug 204299 Opened 23 years ago Closed 23 years ago

wrong css function with "background-color: inherit;"

Categories

(Core :: DOM: CSS Object Model, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: marc.bau, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030429 Mozilla Firebird/0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030429 Mozilla Firebird/0.6 color isn't inherited! in IE it works. Reproducible: Always Steps to Reproduce: see example file attached Actual Results: background behind Test is bgcolor of Body Expected Results: background behind Test in color #CC6600
Attached file Example
Example html
> Expected Results: > background behind Test in color #CC6600 Why is this? There is nothing the <td> could be inheriting that value from -- the background on its parent is "transparent". Marking invalid, since the testcase is rendering exactly as it should per that CSS.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
are you able to tell me what is wrong with this code? have a look with IE on it... looks correct...
I can't have a look with IE. As for what's wrong, you have, basically: <tr><td style="background-color: inherit">Text</td><tr> So what's inherited is "transparent".
IE doesn't understand background-color:inherit. The reason it looks like it does in IE is that both cells have an explicit bgcolor attribute. In Mozilla, the background rule overrrides this, but in IE, it is ignored.
i tryed different settings with IE and inherit is the only working one. seems to be a wrong settings - but without the backround-color settings i'm unable to validate my css without errors if a color is set. i cannot realy see a good solution with less stress and a w3c validated css. however - now without a validated css and i cannot see a real problem.
How about you do "background-color: #CC6600" if that's what you want? Note that the CSS validator flags the lack of a background color as a _warning_, not an error...
in this table i can set the bgcolor - yes - but i use the css setting for this font on different locations with other bgcolors :-). oh - yes it's only warnings... :-). i have overlooked this.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: