diff --git a/index.html b/index.html index 8463c46..6cc7314 100644 --- a/index.html +++ b/index.html @@ -336,10 +336,9 @@

|document| is not [=Document/fully active=], return [=a promise rejected with=] with a {{"NotAllowedError"}} {{DOMException}}. -
  • If the - steps to determine the visibility state return `hidden`, - return [=a promise rejected with=] {{"NotAllowedError"}} - {{DOMException}}. +
  • If + |document|'s [=Document/visibility state=] is "`hidden`", return [=a + promise rejected with=] {{"NotAllowedError"}} {{DOMException}}.
  • Let |promise:Promise| be [=a new promise=].
  • @@ -366,8 +365,8 @@

    source given |document|'s relevant global object to run these steps:
      -
    1. If the steps to determine the visibility state - return `hidden`, then: +
    2. If |document|'s [=Document/visibility state=] is + "`hidden`", then:
      1. Reject |promise| with a {{"NotAllowedError"}} {{DOMException}}. @@ -677,12 +676,13 @@

        Handling document loss of visibility

        - This specification defines the following external now hidden - algorithm, which is run when the user agent determines that the - [=Document/visibility state=] of a {{Document}} |document:Document| - of a top-level browsing context has become `hidden`: + This specification defines the following [=page visibility change + steps=] with [=Document/visibility state=] |state| and + |document:Document|:

          +
        1. If |state| is not "`hidden`", abort these steps. +
        2. [=list/For each=] |lock:WakeLockSentinel| in |document|.{{Document/[[ActiveLocks]]}}["`screen`"]:
            @@ -692,10 +692,6 @@

        -