According to the HTML spec, height
and width
are non-negative integers that define the dimensions of the image in CSS pixels.
Filling those attributs with anything other than a non-negative integer breaks compatibility with HTML. This seems a pretty price to pay just to make things a bit easier for out dated browsers.