Description
What is the issue with the HTML Standard?
The spec says that the <area>
element, in circle state, needs coords
with a non-negative radius.
This means a circle with radius (and area of) 0 is perfectly valid.
Rectangle state however demands that the coordinates for the bottom right be greater than the coordinates for the top left, making a 0 width or 0 height rectangle impossible.
I understand that neither of these are things you'd actually want to use but I'm currently making a utility to create image maps and accounting for the restriction on rectangle was a bit annoying.
So, since it's also inconsistent with what is allowed for circles (and polygons even), I'd propose restricting the rectangle's bottom right to be greater or equal to the top left instead of needing to be strictly greater.