W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2011

[whatwg] Proposal for a tab visibility API

From: Alex Komoroske <komoroske@chromium.org>
Date: Tue, 4 Jan 2011 17:02:45 -0800
Message-ID: <AANLkTikbLd7WaQYSjJLzVVPOoDR2ta8taRGbth8ktLko@mail.gmail.com>
On Tue, Jan 4, 2011 at 3:50 PM, Glenn Maynard <glenn at zewt.org> wrote:
>
>
> The earlier condition that I think you mentioned seemed reasonable:
> never say the page is "hidden" when it's not, eg. no false positives.
> It's more harmful to tell a visible page that it's invisible, than to
> tell an invisible page that it's visible:
>
>  * ?visible? : the full-size page content may be at least partially
> visible on at least one screen.
>  * ?hidden? : the full-size page content is not visible to the user at all.
>
> This gives implementations some latitude to decide whether a condition
> should be treated as hidden, and doesn't require figuring out
> precisely whether a window is visible in every case.
>
> Great point, Glenn.  I agree completely.

--Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20110104/46c2e004/attachment.htm>
Received on Tuesday, 4 January 2011 17:02:45 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:29 UTC