w3c/csswg-drafts

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

Open

#1,070 创建于 2017年3月1日

在 GitHub 查看
 (22 评论) (0 反应) (0 负责人)HTML (545 fork)batch import
Help Wantedcssom-view-1

仓库指标

Star
 (3,546 star)
PR 合并指标
 (平均合并 87天 7小时) (30 天内合并 24 个 PR)

描述

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.

贡献者指南