When you try to convert from PX to % on an element, which is a child of body and has fixed position, it will throw an error on utilities.getRelativeElementDimension, when trying to get element.offsetParent, which is null in that case.
The solution I propose is to add document.documentElement fallback to offsetParent:
reference = positioned ? element.offsetParent || document.documentElement : element.parentNode;
When you try to convert from PX to % on an element, which is a child of body and has fixed position, it will throw an error on utilities.getRelativeElementDimension, when trying to get element.offsetParent, which is null in that case.
The solution I propose is to add document.documentElement fallback to offsetParent:
reference = positioned ? element.offsetParent || document.documentElement : element.parentNode;