W3C home > Mailing lists > Public > public-web-perf@w3.org > May 2011

RE: [Page Visibility] Spec Updates

From: Jatinder Mann <jmann@microsoft.com>
Date: Fri, 13 May 2011 07:13:26 +0000
To: Arvind Jain <arvind@google.com>, Sigbjørn Vik <sigbjorn@opera.com>
CC: "public-web-perf@w3.org" <public-web-perf@w3.org>
Message-ID: <EE4C13A1D11CFA49A58343DE361B0B040683907B@TK5EX14MBXC252.redmond.corp.microsoft.com>
Based on the teleconference last week, we had consensus on using document rather than window. Window suffers the issue of being the global namespace for variables; the risk of collision with an undeclared variable named 'visible' is high.

Developers can extend properties on Document as well, but it's less common. I recommend we go with document.visible and document.visibilityState. 

If there are any explicit concerns with document.visible or document.visibilityState, please raise them now. 


-----Original Message-----
From: public-web-perf-request@w3.org [mailto:public-web-perf-request@w3.org] On Behalf Of Arvind Jain
Sent: Thursday, May 12, 2011 10:52 PM
To: Sigbjørn Vik
Cc: public-web-perf@w3.org
Subject: Re: [Page Visibility] Spec Updates

Re. using Document vs. Window, do we have consensus on using Document?
Could folks express any concerns they may have with using Document?


On Thu, May 12, 2011 at 1:09 AM, Sigbjørn Vik <sigbjorn@opera.com> wrote:
> On Wed, 11 May 2011 23:57:16 +0200, Karen Anderson (IE) 
> <Karen.Anderson@microsoft.com> wrote:
>> Regarding the conversation around whether the visibilityState should 
>> be PAGE_HIDDEN vs PAGE_VISIBLE in the case that the window is not 
>> minimized but is fully obscured by another window:  We all seem to 
>> agree that this detection is hard and has odd meaning implications 
>> for mobile or tablet devices, but furthermore, I brought up the following point on today's call.
>>  Many, if not most, accessibility tools completely overlap the target 
>> window.  For example, magnifier applications demonstrate this.  And 
>> depending on the screen resolution, on-screen keyboards also have the 
>> possible effect of covering the entire window.  There could be other 
>> scenarios as well.  Given this, we should report visible for any 
>> non-minimized window, obscured or not.
> The browser might have more information, particularily in the case of 
> multiple tabs and/or windows it might know that a tab/window obscured 
> by another tab/window is fully hidden, even though it is not 
> minimized. The spec could leave it up to the browser with wording like the following:
> HIDDEN: Used when the browser is confident that no part of the page is 
> visible to the user, for instance when the page is minimized or 
> completely covered by another page. An explanation that being hidden 
> by other applications might not indicate hidden to the user might also be needed.
> --
> Sigbjørn Vik
> Quality Assurance
> Opera Software
Received on Friday, 13 May 2011 07:13:56 UTC

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