Closed
Bug 119513
Opened 24 years ago
Closed 24 years ago
css inherit property appears not to default ( for cascaded styles)
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: rvj, Assigned: dbaron)
Details
Attachments
(2 files)
The css2 spec seems to indicate that inherit is the default property for most
containers. However it seems that it is actually necessary to explicitly code
this for each property you wish to inherit.
Not only that it is necessary to explictly have to include inherit style rules
for every intermediate container back to the root container
In other words it is necessary to create class reference for intermediate
containers. i.e. is a reference to class='midddle' required?
Is this a bug ?
Two test cases are attached. The first works but is very verbose because
inherits rules are explictly defined.
The second does not but is what I would expect should work if parent container
properties are inherited implicitly
| Assignee | ||
Comment 2•24 years ago
|
||
Inheriting is the default for some properties, but not many of the ones you use,
such as 'position' and 'background-color'. I think you might also be
misunderstanding some of the CSS spec.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Summary: css inherit property appears not to default ( for cascaded styles) → css inherit property appears not to default ( for cascaded styles)
wow that was fast ...........
but please note that even width, height and display are not inherited in the
test example even though the css2 spec seems to underline them as default.
should nt these properties be inherited??
| Assignee | ||
Comment 5•24 years ago
|
||
no. They say "Inherited: no" in the spec.
many thanks
I had misunderstood the meaning of the underline in the spec
You need to log in
before you can comment on or make changes to this bug.
Description
•