3 ms·
CSS does actually call it inheritance[0], but it's commonly mixed up with the cascade. Inheritance applies to certain properties, so that when they are not spec
by cjpearson 2y ago
CSS does actually call it inheritance[0], but it's commonly mixed up with the cascade. Inheritance applies to certain properties, so that when they are not specified on an element, an element inherits the value of the parent.
The cascade[1] determines how rules from multiple sources are merged.
[0]: https://developer.mozilla.org/en-US/docs/Web/CSS/Inheritance https://developer.mozilla.org/en-US/docs/Web/CSS/Inheritance
[1]: https://developer.mozilla.org/en-US/docs/Web/CSS/Cascade https://developer.mozilla.org/en-US/docs/Web/CSS/Cascade
- pwdisswordfishc 2y agoCSS calls something completely different "inheritance". There is no class inheritance in CSS, because CSS classes are not OOP classes.