Validating undefined style on element, replacing percentage position to pixel