Closed
Bug 245888
Opened 21 years ago
Closed 21 years ago
css property "background-color" not inherited
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: szelp, Assigned: dbaron)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
The abovementioned page (http://fsmat.at/~szelp/inheritance.html) demonstrates
what I have found.
The "background-color" property specified in <body> should inherit to the <div>'s,
but it does not. (the background-color stays transparent, but should be white,
as inherited).
Explicitly giving the information to divs, of course, "corrects" the problem,
but seen strictly, this can only be viewn as a workaround.
Note: This is _not_ a duplicate of 238400. 238400 complains about the
rendering/not rendering of the background color.
This report is about not inheriting it.
Reproducible: Always
Steps to Reproduce:
Updated•21 years ago
|
Assignee: firefox → dbaron
Component: General → Style System (CSS)
Product: Firefox → Browser
QA Contact: firefox.general → ian
Version: unspecified → Trunk
Comment 1•21 years ago
|
||
According to the spec the behavior of Mozilla is correct, see:
http://www.w3.org/TR/CSS21/colors.html#background-properties
'background-color'
Value: <color> | transparent | inherit
Initial: transparent
Applies to: all elements
Inherited: no <----------------------------
Percentages: N/A
Media: visual
Computed value: as specified
Updated•21 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Updated•21 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•