Skip to content

Commit

Permalink
Update visibility state definitions (#41)
Browse files Browse the repository at this point in the history
- Replace the "determine the visibility state" and "visibility state" definitions
from discontinued [PAGE-VISIBILITY-2] with corresponding definitions
in [HTML].

- Remove a normative reference to [PAGE-VISIBILITY-2].

Co-authored-by: Anssi Kostiainen <[email protected]>
Co-authored-by: Reilly Grant <[email protected]>
  • Loading branch information
3 people authored Sep 10, 2024
1 parent 58af2d3 commit 28fe528
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ <h2>
<li>Let <var>valid pattern</var> be the result of passing
<var>pattern</var> to <a>validate and normalize</a>.
</li>
<li>If the result of running the steps to <a href=
"https://w3c.github.io/page-visibility/#dfn-steps-to-determine-the-visibility-state">
determine the visibility state</a> [[!PAGE-VISIBILITY-2]] is not
<li>If the <a>document</a>'s [=Document/visibility state=] is not
<code>visible</code>, then return false and terminate these steps.
<div class="note">
A trusted (also known as privileged) application that integrates
Expand Down Expand Up @@ -227,9 +225,9 @@ <h2>
</li>
</ol>
<p>
When the <a>user agent</a> determines that the <a href=
"https://w3c.github.io/page-visibility/#dfn-visibility-states">visibility
state</a> of the <code>Document</code> of the <a>top-level browsing
When the <a>user agent</a> determines that
the [=Document/visibility state=] of
the <code>Document</code> of the <a>top-level browsing
context</a> changes, it MUST abort the already running <a>processing
vibration patterns</a> algorithm, if any.
</p>
Expand Down

0 comments on commit 28fe528

Please sign in to comment.