Compare height to another element height?

Hi.
I'm using Kevin's code to create counter-rounded corners for my sidebar. But when the sidebar's height is greater than the main's height, the trick appears.
Is there a way to compare the height of one element with another?
I'd like to be able to apply some styles to the sidebar when it's larger, and others when it's smaller.
This issue will be fixed when the page contains actual content and the main is larger, but I'd like to fix it when it isn't.
Captura_de_pantalla_en_2025-03-31_12-04-13.png
Was this page helpful?