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

[whatwg] api for fullscreen()

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sat, 30 Jan 2010 15:52:11 -0600
Message-ID: <dd0fbad1001301352k387362c3lf5ad9074285a8c89@mail.gmail.com>
On Fri, Jan 29, 2010 at 11:54 PM, Robert O'Callahan
<robert at ocallahan.org> wrote:
> While a window is
> fullscreen, the root element and the designated fullscreen element, if any,
> are given a pseudoclass "fullscreen". Then you can have some default rules
> in the UA style sheet:
> *:root:fullscreen { overflow:hidden; }
> *:not(:root):fullscreen { position:fixed; left:0; top:0; bottom:0; right:0;
> }

This sounds great to me.  The :not(:root) required to select the
actual element was about to draw an objection from me, but then I
realized that actual authors are almost certainly going to have a good
hook to target the fullscreenable elements anyway, and so won't need
to write that fully-general version of the selector on their own.
Something like "article:fullscreen" or ".widget:fullscreen" would work
fine and be easy to write and understand.

Received on Saturday, 30 January 2010 13:52:11 UTC

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