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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 24 Sep 2013 11:50:07 -0400
Message-ID: <5241B4AF.9030808@mit.edu>
To: www-style@w3.org
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...

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

-Boris
Received on Tuesday, 24 September 2013 15:50:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:34 UTC