Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ <h2>{{Window}} interface extensions</h2>
};

dictionary IdleRequestOptions {
unsigned long timeout;
unsigned long timeout = 0;
};

[Exposed=Window] interface IdleDeadline {
Expand All @@ -309,9 +309,9 @@ <h2>{{Window}} interface extensions</h2>
<section data-dfn-for="Window">
<h2>The <dfn>requestIdleCallback()</dfn> method</h2>
<p>When {{Window/requestIdleCallback}}<code>(|callback|, |options|)</code> is
invoked with a given <dfn>IdleRequestCallback</dfn>
and optional <dfn>IdleRequestOptions</dfn>, the user agent
MUST run the following steps:</p>
invoked with a given <dfn>IdleRequestCallback</dfn> and
<dfn>IdleRequestOptions</dfn>, the user agent MUST run the following
steps:</p>
<ol>
<li>Let <var>window</var> be this {{Window}} object.</li>
<li>Increment the <var>window</var>'s <a>idle callback identifier</a>
Expand All @@ -328,9 +328,9 @@ <h2>The <dfn>requestIdleCallback()</dfn> method</h2>
cancel each other—e.g. if the idle callback is scheduled first, then
it cancels the timeout callback, and vice versa.</p>
</li>
<li>If the <code><dfn data-dfn-for="IdleRequestOptions">timeout</dfn>
</code> property is present in <var>options</var> and has a positive
value:
<li>Let <var>timeout</var> be <var>options</var>["<code><dfn
data-dfn-for="IdleRequestOptions">timeout</dfn></code>"].</li>
<li>If <var>timeout</var> is greater than 0:
<ol>
<li>Wait for <var>timeout</var> milliseconds.</li>
<li>Wait until all invocations of this algorithm, whose
Expand Down
Loading