I have an element with text test which is not absolute position in scrollable div and I need to calculate top height and bottom height from it’s position as shown in screenshot?
How to get top and bottom height from an element from its position in scrollable div or modal