Currently, the library doesn't handle very well scenarios in which the reference and the floating elements are rendered in two different documents — for example, when the reference is inside an iframe, and the floating element is rendered outside of the iframe.
For more context, see conversation in #1868