Reputation: 145
Is it possible for a pseudo element like :before
or :after
to inherit a value from a different property of the parent?
In my case I have a third party component that sets the background color of its elements Runtime... I need to inherit that color and set it to the border color of the pseudo elements.
Upvotes: 0
Views: 93
Reputation: 723388
You can't inherit the value of a different property. This isn't any different between pseudo-elements and actual elements.
Upvotes: 1