Re: [PageVisibility] What should the visibility api return in display:none iframes?

On Fri, 07 Oct 2011 02:28:18 +0200, Jonas Sicking <> wrote:
> That means that if a page wants to only do certain actions when
> displayed, it has to first check it's .hidden state, then walk up the
> element.ownerDocument.defaultView.frameElement chain and at each
> element use CSSOM to check if the iframe is hidden (which off the top
> of my head I don't remember the API for).
> This seems severely more complex than simply checking .hidden. Does
> anyone know of any webpages that we can check to see if they do this?
> What is the benefit of this approach?

Are you also going to check for it being positioned off-screen,  
visibility:hidden, et cetera? It seems somewhat weird to have a  
display:none special case in this API.

Anne van Kesteren

Received on Friday, 7 October 2011 10:15:30 UTC