Skip to content

4.8.13 The area element: Inconsistency between circle state and rectangle state #10306

Open
@Psychpsyo

Description

@Psychpsyo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions