Add dimension check attribute method for with/height attributes where floating points and percentages are allowed