The inherit keyword doesn't inherit a value from a property if it's used for CSS variables
cssisntmagic.substack.com
--bg-color: inherit get the red value from --bg-color of the parent and move to background-color of the p element. The answer is red π‘ β€ Thank you so much, my sponsors: Tatiana Ten
The inherit keyword doesn't inherit a value from a property if it's used for CSS variables
The inherit keyword doesn't inherit a valueβ¦
The inherit keyword doesn't inherit a value from a property if it's used for CSS variables
--bg-color: inherit get the red value from --bg-color of the parent and move to background-color of the p element. The answer is red π‘ β€ Thank you so much, my sponsors: Tatiana Ten