This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26677 - Clarify when :fullscreen applies
Summary: Clarify when :fullscreen applies
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Fullscreen (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-26 21:54 UTC by Philip Jägenstedt
Modified: 2015-07-15 12:53 UTC (History)
2 users (show)

See Also:


Attachments

Description Philip Jägenstedt 2014-08-26 21:54:35 UTC
http://fullscreen.spec.whatwg.org/#:fullscreen-pseudo-class

If an element at the top of its node document's fullscreen element stack is moved to another document, does the :fullscreen pseudo-class still apply until the old document's fullscreen element stack is updated in exitFullscreen()?

If yes, it becomes a bit harder to implement :fullscreen, one would have to have a flag per element instead of checking the the element's node document's fullscreen element stack. Do not like.

If no, scripts will immediately observe the change in element.matches(':fullscreen') but the change in oldDocument.fullscreenElement will be async. That's a bit weird, but maybe OK.
Comment 1 Anne 2014-09-06 15:28:01 UTC
Why would the change to oldDocument.fullscreenElement be asynchronous? As far as I can tell it is identical to :fullscreen.
Comment 2 Philip Jägenstedt 2014-09-06 21:44:10 UTC
It's the difference between an element being at the top of any document's fullscreen element stack, and being at the top of that element's node document's fullscreen element stack. The latter makes more sense I think.
Comment 3 Anne 2014-09-07 07:05:01 UTC
Oh I see. The removing steps are sometimes synchronous and sometimes not. As per that other bug. This sucks.
Comment 4 Philip Jägenstedt 2015-07-15 12:53:06 UTC
The spec now says what I asked for: "The :fullscreen pseudo-class must match any element that is that element's node document's fullscreen element."