| 
									
										
										
										
											2023-11-08 11:04:56 -07:00
										 |  |  | #import <FileAPI/Blob.idl> | 
					
						
							| 
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 |  |  | #import <HTML/CanvasRenderingContext2D.idl> | 
					
						
							|  |  |  | #import <HTML/HTMLElement.idl> | 
					
						
							| 
									
										
										
										
											2022-06-04 04:22:42 +01:00
										 |  |  | #import <WebGL/WebGLRenderingContext.idl> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext; | 
					
						
							| 
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-07 16:45:09 -06:00
										 |  |  | // https://html.spec.whatwg.org/multipage/semantics.html#htmlcanvaselement | 
					
						
							| 
									
										
										
										
											2023-09-03 15:58:55 +12:00
										 |  |  | [Exposed=Window] | 
					
						
							| 
									
										
										
										
											2020-06-21 15:37:13 +02:00
										 |  |  | interface HTMLCanvasElement : HTMLElement { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-23 03:48:52 -04:00
										 |  |  |     [HTMLConstructor] constructor(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-01 01:45:18 +00:00
										 |  |  |     [CEReactions] attribute unsigned long width; | 
					
						
							|  |  |  |     [CEReactions] attribute unsigned long height; | 
					
						
							| 
									
										
										
										
											2020-06-21 15:37:13 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-25 17:26:24 +02:00
										 |  |  |     RenderingContext? getContext(DOMString contextId, optional any options = null); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-19 23:47:29 +02:00
										 |  |  |     USVString toDataURL(optional DOMString type = "image/png", optional double quality); | 
					
						
							| 
									
										
										
										
											2023-08-03 01:29:31 +02:00
										 |  |  |     undefined toBlob(BlobCallback _callback, optional DOMString type = "image/png", optional double quality); | 
					
						
							| 
									
										
										
										
											2023-10-25 17:26:24 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-09 21:26:42 +00:00
										 |  |  | }; | 
					
						
							| 
									
										
										
										
											2023-08-03 01:29:31 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | callback BlobCallback = undefined (Blob? blob); |