Skip to content

Commit f7c518a

Browse files
authored
Correct RenderingContext typedef
It needs to list ImageBitmapRenderingContext. Missed in #1028.
1 parent c86d5bc commit f7c518a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59130,9 +59130,9 @@ dictionary <dfn>AssignedNodesOptions</dfn> {
5913059130
<dd><span>Global attributes</span></dd>
5913159131
<dd><code data-x="attr-canvas-width">width</code></dd>
5913259132
<dd><code data-x="attr-canvas-height">height</code></dd>
59133-
<dt><span data-x="concept-element-dom">DOM interface</span>:</dt><!--ADD-TOPIC:DOM APIs-->
59133+
<dt><span data-x="concept-element-dom">DOM interface</span>:</dt>
5913459134
<dd w-nodev>
59135-
<pre class="idl">typedef (<span>CanvasRenderingContext2D</span> or <span>WebGLRenderingContext</span>) <dfn>RenderingContext</dfn>;
59135+
<pre class="idl">typedef (<span>CanvasRenderingContext2D</span> or <span>ImageBitmapRenderingContext</span> or <span>WebGLRenderingContext</span>) <dfn>RenderingContext</dfn>;
5913659136

5913759137
[Exposed=Window,
5913859138
<span>HTMLConstructor</span>]
@@ -59150,7 +59150,7 @@ interface <dfn>HTMLCanvasElement</dfn> : <span>HTMLElement</span> {
5915059150
callback <dfn>BlobCallback</dfn> = void (<span>Blob</span>? blob);</pre>
5915159151
</dd>
5915259152
<dd w-nohtml>Uses <code>HTMLCanvasElement</code>.</dd>
59153-
</dl><!--REMOVE-TOPIC:DOM APIs-->
59153+
</dl>
5915459154

5915559155
<p>The <code>canvas</code> element provides scripts with a resolution-dependent bitmap canvas,
5915659156
which can be used for rendering graphs, game graphics, art, or other visual images on the fly.</p>

0 commit comments

Comments
 (0)