Skip to content

Commit

Permalink
Update interfaces/html.idl (#15180)
Browse files Browse the repository at this point in the history
  • Loading branch information
autofoolip authored and foolip committed Jan 31, 2019
1 parent 6b32df2 commit 09c7c72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interfaces/html.idl
Original file line number Diff line number Diff line change
Expand Up @@ -1096,8 +1096,8 @@ interface HTMLCanvasElement : HTMLElement {

RenderingContext? getContext(DOMString contextId, optional any options = null);

USVString toDataURL(optional DOMString type, optional any quality);
void toBlob(BlobCallback _callback, optional DOMString type, optional any quality);
USVString toDataURL(optional DOMString type = "image/png", optional any quality);
void toBlob(BlobCallback _callback, optional DOMString type = "image/png", optional any quality);
OffscreenCanvas transferControlToOffscreen();
};

Expand Down Expand Up @@ -1357,7 +1357,7 @@ typedef (OffscreenCanvasRenderingContext2D or WebGLRenderingContext or WebGL2Ren

dictionary ImageEncodeOptions {
DOMString type = "image/png";
unrestricted double quality = 1.0;
unrestricted double quality;
};

enum OffscreenRenderingContextId { "2d", "webgl", "webgl2" };
Expand Down

0 comments on commit 09c7c72

Please sign in to comment.