w3c/csswg-drafts

[cssom-view] It is unclear when offsetX/Y are calculated

Open

#1 070 ouverte le 1 mars 2017

Voir sur GitHub
 (22 commentaires) (0 réactions) (0 assignés)HTML (545 forks)batch import
Help Wantedcssom-view-1

Métriques du dépôt

Stars
 (3 546 stars)
Métriques de merge PR
 (Merge moyen 87j 7h) (24 PRs mergées en 30 j)

Description

https://drafts.csswg.org/cssom-view/#extensions-to-the-mouseevent-interface

The spec says "return the x[y]-coordinate of the position where the event occurred relative to the origin of the padding edge of the target node, ignoring the transforms that apply to the element and its ancestors, and terminate these steps."

blink and webkit cache the value at the first access, Edge seems to cache it when event is created and Gecko calculates it always. My reading is that Gecko does it right, bz' reading is that Edge does it right, but then, blink/webkit model is the fastest.

Guide contributeur