W3C home > Mailing lists > Public > public-web-perf@w3.org > February 2013

Re: requestAnimationFrame behavior on display:none iframes

From: Philippe Le Hegaret <plh@w3.org>
Date: Wed, 13 Feb 2013 19:45:45 -0500
Message-ID: <1360802745.2859.49.camel@chacal>
To: Nat Duca <nduca@chromium.org>
Cc: public-web-perf <public-web-perf@w3.org>
> Should requestAnimationFrame tick on display:none iframes?
> A simple test:
> http://www.jankfree.com/raf/iframes_and_visibility_when_hidden.html
> FF and Chrome differ:
> -  FF doesn't tick
> - Webkit does
> Not sure what IE does.
> And, what do we think is "correct"?

Just to make sure we're closing the loop here. Section 5 of the
processing model [1] indicates that if the context is not visible
(hidden is true), no callback happens.
See also the response from James in

So, if display:none is on the iframe, I would expect that no callback

It's not clear if we have a proper test for your case however. I'll try
to make sure we have one during our CR phase.


Received on Thursday, 14 February 2013 00:45:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:34 UTC