in dom use coordinates relative to root element