Spec allows x, y, width and height to be left out of <rect> elements so we need to default to 0.0f if they are missing