W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: Transformed Pointer Coordinates?

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 30 Jan 2013 22:41:51 +1300
Message-ID: <CAOp6jLacOenYXtLOCaHHY8PzUb2Mv+eynmq=Tb2UGGZDOCt-9Q@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Simon Fraser <smfr@me.com>, Doug Schepers <schepers@w3.org>, "public-pointer-events@w3.org" <public-pointer-events@w3.org>, "public-fx@w3.org" <public-fx@w3.org>, www-style list <www-style@w3.org>
On Wed, Jan 30, 2013 at 5:20 PM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> Not particularly happy with the naming, but +1 on the ability *so much*.
>
> I suspect it should go in CSSOM View?
>

Probably.

As for naming: should we call the type CSSPoint? Or is it OK to take
"Point" for this? convertPointFromPageToNode doesn't strike me as a great
name but it's probably not worth changing.

There are a bunch of edge cases to sort out --- e.g. nodes with no
associated CSS box; nodes with more than one CSS box; nodes in a different
document; nodes inside a container with a singular CSS transform; etc. I
have no idea how Webkit handles any of those.

In theory one could run into problems using these APIs to convert points
from one node to another, where both nodes are in a subtree whose root has
a singular CSS transform. Converting through the page coordinate system
would lose information unnecessarily. That problem may not be worth
worrying about.

Rob
-- 
Jesus called them together and said, “You know that the rulers of the
Gentiles lord it over them, and their high officials exercise authority
over them. Not so with you. Instead, whoever wants to become great among
you must be your servant, and whoever wants to be first must be your
slave — just
as the Son of Man did not come to be served, but to serve, and to give his
life as a ransom for many.” [Matthew 20:25-28]
Received on Wednesday, 30 January 2013 09:42:19 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT