Skip to content

Commit 4f45879

Browse files
committed
[worklets] Add renderWorklet as attribute to window for now.
1 parent 08a4cf8 commit 4f45879

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

worklets/Overview.bs

+19
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,25 @@ it must run the following steps:
271271

272272
Note: It is up to the user agent to select a appropriate {{WorkletGlobalScope}} to invoke the method in.
273273

274+
Rendering Worklet {#rendering-worklet}
275+
--------------------------------------
276+
277+
The {{renderWorklet}} attribute allows access to the {{Worklet}} responsible for all the classes
278+
which are related to rendering.
279+
280+
<pre class='idl'>
281+
partial interface Window {
282+
[SameObject] readonly attribute Worklet renderWorklet;
283+
};
284+
</pre>
285+
286+
The {{RenderWorkletGlobalScope}} is the global execution context of the {{renderWorklet}}.
287+
288+
<pre class='idl'>
289+
interface RenderWorkletGlobalScope : WorkletGlobalScope {
290+
};
291+
</pre>
292+
274293
Examples {#examples}
275294
====================
276295

0 commit comments

Comments
 (0)