Revert "Check first for `offsetWidth/offsetHeight` if the canvas parent `width/height` properties are undefined"

This reverts commit 6e057afc41ba7cb550d9dae51d64bca7786f9dd3.