Add mechanism for a button-like element to behave like an <area>
#9736
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
Currently when using a
<map>
you can't position /shape a<button>
like you can an area.This means you cannot use
popover
attributes. (nor will you be able to use the proposedinvoker
attributes).This feels like a valid use case that's not currently possible without having to manually position buttons a top an image.
For example trying to mark up a map, where you can click on one of the cities and see some info about it (see https://x.com/brucel/status/1702295018428330255?s=20 for context)
Possible solutions:
<map>
and letcoords
andshape
attributes to work as expected on it.<area-button>
that works much like an<area>
but doesn't support target and href and does support these new attributes (is also semantically a button)<area>
to use these new attributes (and preferably they would automatically make it's rolebutton
like href makes it a link)I'm not particularly attached to any of these solutions it's more just to ensure it's possible.
The text was updated successfully, but these errors were encountered: