Issue: Focus always goes to the top-most element when it moves inside the iframe not considering the scroll offset of the iframe)
Solution:
1) Get the rect of iframe based on its containing document
2) Set the iframe's position as (0,0) because the rects of elements inside the iframe don't know the real iframe's position.