User avatar
Volpeon wvrnFlight
@volpeon@icy.wyvern.rip
After all this time, it's rare for me to use CSS and get confused by its behavior, but today was such a day.

I had an element with "position: relative" and "&::after { position: absolute }". Whenever the ::after element was displayed, the outer element's size changed, but only if it also contained a child element with a margin.

This shouldn't happen? Why would an absolute-positioned element affect anything? I chose "::after { position: absolute }" specifically to add a focus indicator without it interfering with the layout.
neofox_googly_shocked