Re: [cssom] Element size/positioning information

On Tue, Apr 19, 2011 at 2:27 AM, Robert O'Callahan <robert@ocallahan.org> wrote:
> On Tue, Apr 19, 2011 at 6:04 AM, Tab Atkins Jr. <jackalmage@gmail.com>
> wrote:
>>
>> So, what precisely do you see the numbers being relative to?  In the
>> viewport case,it's the top-left corner of the viewport.  For arbitrary
>> elements, though, should it always be the top-left?  Of which box?
>> What about transformed elements?
>
> A simple option would be the top-left of the content-box of the element's
> first CSS box.

Sounds reasonable.  I can at least start with that, and we'll see how it looks.

~TJ

Received on Tuesday, 19 April 2011 20:01:45 UTC