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)
Tracking
()
RESOLVED
INVALID
People
(Reporter: marc.bau, Unassigned)
Details
Attachments
(1 file)
|
683 bytes,
text/html
|
Details |
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
| Reporter | ||
Comment 1•23 years ago
|
||
Example html
Comment 2•23 years ago
|
||
> 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
| Reporter | ||
Comment 3•23 years ago
|
||
are you able to tell me what is wrong with this code? have a look with IE on
it... looks correct...
Comment 4•23 years ago
|
||
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".
Comment 5•23 years ago
|
||
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.
| Reporter | ||
Comment 6•23 years ago
|
||
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.
Comment 7•23 years ago
|
||
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...
| Reporter | ||
Comment 8•23 years ago
|
||
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.
Description
•