I know plenty of ways to calculate the offset or position of an element with jQuery, but I am working on a library that will be used by clients who may or may not be using jQuery and I need to keep it as small as possible.
Is there a lightweight library or an example somewhere that works the same way as the jQuery's offset() function?