My dilemma involves multiple pseudo elements connected to diverse parent divs, each with a unique background color. My goal is for these before and after pseudo elements to mimic the background color of their respective parent divs without the use of JavaScript, relying solely on CSS. Despite attempting to set the background of the before and after elements to inherit, they remain transparent. How can I achieve this desired effect?