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.