forked from w3c/screen-wake-lock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
editorial: Improve references to terms from the Page Visibility spec. (…
…w3c#306) * @annevk says in w3c#299 that, as a general rule, invoking IDL members from algorithms, like we were doing with `document.hidden`, is not recommended. Instead, invoke the "determine the visibility state" steps defined in the Page Visibility spec directly. * Clean up the "Dependencies" section; for now we only need one term that is not exported by the latest Page Visibility TR (this is fixed in the ED): the "now hidden algorithm". The steps described in the "Handling document loss of visibility" steps now explicitly run after that algorithm, which runs when the top-level browsing context's Document becomes hidden. More generally, these changes should also make it more clear that the visibility state checks only apply to the top-level browsing context (according to the Page Visibility spec itself). Although we were previously checking if a given `Document` was `hidden` even if it did not belong to a top-level browsing context, that was simply invalid.
- Loading branch information
Raphael Kubo da Costa
authored
Feb 24, 2021
1 parent
895be5a
commit 54f520c
Showing
1 changed file
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters