Neither in standard document, nor in an iframe – though it's consistent in how it's wrong – in both cases the target element becomes hidden above top edge of the current window element instead of being sticked to the bottom of it. Looks like height of the window element has been forgotten to take into consideration.
Neither in standard document, nor in an iframe – though it's consistent in how it's wrong – in both cases the target element becomes hidden above top edge of the current window element instead of being sticked to the bottom of it. Looks like height of the window element has been forgotten to take into consideration.
See an example: https://codesandbox.io/s/festive-cookies-ogk06 – try to click the button at the top and at the bottom