Bug 218138 - MouseEvent.offsetX/Y: Caching of values may create unexpected results
Summary: MouseEvent.offsetX/Y: Caching of values may create unexpected results
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-23 14:58 PDT by Noam Rosenthal
Modified: 2020-10-30 14:59 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Noam Rosenthal 2020-10-23 14:58:58 PDT
See https://github.com/w3c/csswg-drafts/issues/1070
Currently, offsetX/Y are computed at the first time they are requested rather than when the event is dispatched.
This means that if there is a layout between the time of the event and the time of the call to event.offsetX/Y, the results would not match the spec, and may also create an undesired synchronous layout.
Comment 1 Radar WebKit Bug Importer 2020-10-30 14:59:15 PDT
<rdar://problem/70898493>