Myrdivar
Myrdivar

Reputation: 145

CSS pseudo before/after different inheritance

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

Answers (1)

BoltClock
BoltClock

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

Related Questions