Closed Bug 1994100 Opened 1 month ago Closed 1 month ago

Write mouse/pointer boundary event tests when `usemap` of `<img>` or `coord` of `<area>` is modified

Categories

(Core :: DOM: UI Events & Focus Handling, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
146 Branch
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.

I'll file spec issues and Chromium/WebKit bugs once the coming patch gets r+.

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.

Pushed by masayuki@d-toybox.com: https://github.com/mozilla-firefox/firefox/commit/5dd83104b28e https://hg.mozilla.org/integration/autoland/rev/1ebb5b07c380 Add WPTs for mouse/pointer boundary events when `usemap` of `<img>` or `coord` of `<area>` is modified r=smaug,dom-core
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/55500 for changes under testing/web-platform/tests

I'll file a bug of WebKit if the test fails on Safari. So, I wait the result in wpt.fyi.

Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
Upstream PR merged by moz-wptsync-bot
QA Whiteboard: [qa-triage-done-c147/b146]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: