Skip to content

Commit

Permalink
editorial: Define a task source for the tasks run by this specification.
Browse files Browse the repository at this point in the history
This allows implementations to better decide when to run events and tasks
from this spec in relation to others, and specifying a task source is a
requirement when queuing tasks like we do [1].

[1] https://html.spec.whatwg.org/multipage/webappapis.html#event-loop-for-spec-authors

Rather than picking a generic task source from the HTML spec, we define a
new task source, the "screen wake lock task source", following the current
guidance in w3ctag/design-principles#38 (which is still open).
  • Loading branch information
Raphael Kubo da Costa committed Feb 8, 2021
1 parent 2b458c2 commit 83d8dc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ <h2>
<h3>
Concepts and state record
</h3>
<p>
The <a>task source</a> for the <a>tasks</a> mentioned in this
specification is the <dfn>screen wake lock task source</dfn>.
</p>
<p>
The term <dfn>platform wake lock</dfn> refers to platform interfaces
with which the user agent interacts to query state and acquire and
Expand Down

0 comments on commit 83d8dc8

Please sign in to comment.