if (height) result.height = typeof height === "string" && height[height.length - 1] === "%" ? height : height + "px";