The method el.getBoundingClientRect() gives a result relative to the viewport\'s top-left corner (0,0), not relative to an element\'s parent, whereas <
el.getBoundingClientRect()
0,0