[csswg-drafts] [css-inherit] New rule to make non-inherited properties inheritable (#4395)

indrekpaas has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-inherit] New rule to make non-inherited properties inheritable ==
I had a situation where child elements had to inherit multiple non-inherited properties from a parent. I used the standard `inherit` keyword, but it led to code repetition and sparked an idea for a more implicit approach.

What if inheriting properties explicitly from a parent

```css
.parent {
  border-radius: 50%;
}

.child {
  border-radius: inherit;
}
```

could become implicit with an `!inherit` rule?

```css
.parent {
  border-radius: 50% !inherit;
}
```

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4395 using your GitHub account

Received on Friday, 4 October 2019 01:25:52 UTC