Skip to content

Commit eb2d546

Browse files
Donovan Gloverannevk
authored andcommitted
Explain why OffscreenCanvas is an EventTarget
Fixes whatwg#3017.
1 parent 822a7bd commit eb2d546

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64861,6 +64861,10 @@ interface <dfn>OffscreenCanvas</dfn> : <span>EventTarget</span> {
6486164861
};
6486264862
</pre>
6486364863

64864+
<p class="note"><code>OffscreenCanvas</code> is an <code>EventTarget</code> so that WebGL can
64865+
fire <code data-x="">webglcontextlost</code> and <code data-x="">webglcontextrestored</code>
64866+
events at it. <ref spec=WEBGL></p>
64867+
6486464868
<p><code>OffscreenCanvas</code> objects are used to create rendering contexts, much like an
6486564869
<code>HTMLCanvasElement</code>, but with no connection to the DOM. This makes it possible to
6486664870
use canvas rendering contexts in <a href="#workers">workers</a>.</p>

0 commit comments

Comments
 (0)