Oh oops, Firefox is a bit stricter about interpreting custom elements as inline elements by default instead of block elements. This messes up the positioning relative to the container. Fixed!