diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index a913d8479..2bec1db4e 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -16482,6 +16482,7 @@ declare var WebGLRenderingContext: { }; interface WebGLRenderingContextBase { + readonly canvas: HTMLCanvasElement; readonly drawingBufferHeight: GLsizei; readonly drawingBufferWidth: GLsizei; activeTexture(texture: GLenum): void; diff --git a/inputfiles/addedTypes.json b/inputfiles/addedTypes.json index d385a89af..3e3e6407d 100644 --- a/inputfiles/addedTypes.json +++ b/inputfiles/addedTypes.json @@ -179,6 +179,20 @@ ] } }, + "WebGLRenderingContextBase": { + "properties": { + "property": { + "canvas": { + "exposed": "Window", + + // https://github.com/KhronosGroup/WebGL/pull/3296 will make these redundant + "name": "canvas", + "type": "HTMLCanvasElement", + "readonly": true + } + } + } + }, "WindowEventHandlers": { "events": { "event": [ diff --git a/inputfiles/removedTypes.json b/inputfiles/removedTypes.json index 32677002c..32aba162c 100644 --- a/inputfiles/removedTypes.json +++ b/inputfiles/removedTypes.json @@ -16,6 +16,7 @@ "WebGLRenderingContextBase": { "properties": { "namesakes": { + // https://github.com/KhronosGroup/WebGL/pull/3296 will make this redundant "canvas": null } }