RedditPP Mascot

RedditPP

r/webdev • … • u/HaydnH

CSS inheritance across different foreignObjects

Let's say I have a SVG code structure as follows:

<g> <foreignObject> <div></div> </foreignObject> <g> <foreignObject> <div></div> </foreignObject> </g> </g>

Is there a way for the second foreignObject's div to inherit CSS, background colour etc, from the first?

Thanks.

— 0