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

Re: [matrix][cssom-view] DOMPoint, DOMPointLiteral definitions

From: Dirk Schulze <dschulze@adobe.com>
Date: Tue, 24 Sep 2013 10:19:10 -0700
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <AFD68234-93D1-4A50-95FE-1114D7A32A76@adobe.com>

On Sep 24, 2013, at 5:50 PM, Boris Zbarsky <bzbarsky@MIT.EDU> wrote:

> On 9/24/13 11:32 AM, Dirk Schulze wrote:
>> That may depend if the returned rect is live or not.
> 
> It's not.
> 
>> If not, why not?
> 
> Because that makes the API near-impossible to use: if you do anything 
> that changes geometry, suddenly the object you're using in your 
> calculations for changing that geometry changes…

That is a misunderstanding. I meant exactly the same as you.

> 
> I personally see no problem with allowing the page to mutate the object 
> returned from getBoundingClientRect, fwiw.  It's always a new object, etc.

Agree.

> 
> -Boris
> 

Dirk
Received on Tuesday, 24 September 2013 17:19:35 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:32 UTC