Re: requestAnimationFrame behavior on display:none iframes

> 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
 http://lists.w3.org/Archives/Public/public-web-perf/2012Oct/0033.html

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

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.

Philippe

[1]
http://w3c-test.org/webperf/specs/RequestAnimationFrame/#processingmodel

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