Skip to toolbar

Community & Business Groups

CSS – class `inherit` property?

Would it be practical for an inherit property in the CSS standard? The name is merely a suggestion, but it may become confusing since “inherit” is used as a value, so the name is just an example O_o)

The property I’m proposing is a class inheritance property…..

.heading {
border: 1px solid #aaaaaa;

.article-heading {
inherit: ‘.heading’;
border-width:0px 0px 4px 0px;

also, I’m focusing on class inheritance, since ID inheritance would not make much sense semantically. (.-.  )

Is it practical or would it cause unnecessary re-parsing / back-tracking on page load?

Leave a Reply

Your email address will not be published. Required fields are marked *


Before you comment here, note that this forum is moderated and your IP address is sent to Akismet, the plugin we use to mitigate spam comments.