From 09c7c724f76a6512d829c20a5b84d0fabba661eb Mon Sep 17 00:00:00 2001 From: autofoolip Date: Thu, 31 Jan 2019 12:02:52 +0100 Subject: [PATCH] Update interfaces/html.idl (#15180) Source: https://github.com/tidoust/reffy-reports/blob/d1f04f3/whatwg/idl/html.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/486795699 --- interfaces/html.idl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/html.idl b/interfaces/html.idl index 46d0b852f095a6..0d6445e7f016b7 100644 --- a/interfaces/html.idl +++ b/interfaces/html.idl @@ -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(); }; @@ -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" };