HTML and CSS define inheritance as direct "parent to child" relationships.
No skipping generations; it is strictly a top-down relationship. Child elements cannot inherit directly from their grandparents or other ancestors. Parent elements cannot inherit from their children or other descendants.
<body>set width:50% = 50% of parent (A)set width:50% = 50% of parent (B)set color:redset width:auto = 100% of parent (C) (not including padding and margin)color from (C)