This example gets the XY position of an element with the style position of fixed. Click the document to get the XY of the 2 fixed elements. Then scroll and click again to get an updated position.
fixed