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

Re: [CSSOM] Revisiting transforms and getBoundingClientRect()

From: Erik Arvidsson <arv@chromium.org>
Date: Thu, 8 Sep 2011 10:52:07 -0700
Message-ID: <CAJ8+GohDd2cmMXAD+5znYD-S4Ev7=7-_=u5JR-gpy7C-MK7f0g@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org
On Thu, Sep 8, 2011 at 10:26, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>> I don't think it would be pointless to have an async event that would
>> be dispatched when we know that the layout is non dirty at some point
>> before the next paint. At this point getting the layout rects would be
>> cheap.
>
> This causes problems if the event handler then makes layout dirty, no?

It would trigger another event. Yes, this might be hard for people to
grasp. Maybe it would be less error prone to do this using a one time
callback instead?

-- 
erik

P.S. We should change the subject...
Received on Thursday, 8 September 2011 17:52:52 UTC

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