I have an absolutely positioned div which is a child of a statically-positioned parent container. I'm finding that applying transform: translateY(-50%) to the container is causing the child to treat this container as though it were position: relative.
When I check absolutelyPositionedChild.offsetParent, it points to the container. And when I get container.computedStyleMap().get('position'), it gives me CSSKeywordValue {value: 'static'}. So it is most certainly static, and yet it's being used as the reference. The second I disable the transform in the dev tools inspector, the offsetParent changes to a much higher div that contains the whole app - as intended.
Is this documented somewhere or am I misunderstanding something? More pertinently, is there a way to force it to not be treated as the offsetParent?