Write mouse/pointer boundary event tests when `usemap` of `<img>` or `coord` of `<area>` is modified
Categories
(Core :: DOM: UI Events & Focus Handling, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox146 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 file)
It's unclear that how <area> is treated within CSS. However, it's treated as a transparent object at least when a hit-test of pointing device events and <area> can be a target of mouse events and pointer events.
When the pointer is moved over the shape of an <area>, browsers dispatch mouseover and pointerover on the <area> instead of the <img>. Then, when it's moved out from the shape, browsers dispatch mouseout and pointerout.
However, Chrome and Safari do not dispatch boundary events when the underneath element of the last pointer position becomes another element. This does not make sense because modifying the layout, e.g., modifying the <img> size, causes mouseover and pointerover on the new element anyway. Therefore, modifying usemap attribute of <img> and coord attribute of <area> should be treated as a layout change.
| Assignee | ||
Comment 1•1 month ago
|
||
I'll file spec issues and Chromium/WebKit bugs once the coming patch gets r+.
| Assignee | ||
Comment 2•1 month ago
|
||
It's unclear that how <area> is treated within CSS. However, it's
treated as a transparent object at least when a hit-test of pointing
device events and <area> can be a target of mouse events and pointer
events.
When the pointer is moved over the shape of an <area>, browsers
dispatch mouseover and pointerover on the <area> instead of the
<img>. Then, when it's moved out from the shape, browsers dispatch
mouseout and pointerout.
However, Chrome and Safari do not dispatch boundary events when the
underneath element of the last pointer position becomes another element.
This does not make sense because modifying the layout, e.g., modifying
the <img> size, causes mouseover and pointerover on the new
element anyway. Therefore, modifying usemap attribute of <img>
and coord attribute of <area> should be treated as a layout change.
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 5•1 month ago
|
||
I'll file a bug of WebKit if the test fails on Safari. So, I wait the result in wpt.fyi.
Comment 6•1 month ago
|
||
| bugherder | ||
| Assignee | ||
Comment 8•1 month ago
|
||
Wow, surprisingly, Safari dispatches mouse/pointer events on the <img> rather than corresponding <area>.
| Assignee | ||
Updated•1 month ago
|
Updated•8 days ago
|
Description
•