Re: [w3c/uievents] Define what layerX/layerY do in presence of transforms. (Issue #398)

chrishtr left a comment (w3c/uievents#398)

> [@chrishtr](https://github.com/chrishtr) just to be clear, you expect the layerX / layerY to be root coordinates? I got a bit confused by the "`pageX` includes transforms" bit of your comment, my understanding is that it would _not_ include transforms, it's the global coordinate space, right?

It is in "visual pixel coordinates" relative to the document, and offset by document scroll. So any transforms *are* taken into account, because those transforms affect visible pixel coordinates.

> Judging by [chromium/chromium@5a32b6a](https://github.com/chromium/chromium/commit/5a32b6a6abebde6c5762653eff3587619682f524) I think the answer is "yes".

It's not quite there yet. It's in Chrome 140, which goes to stable in early September.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/398#issuecomment-3235110178
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/uievents/issues/398/3235110178@github.com>

Received on Thursday, 28 August 2025 22:15:27 UTC