From 8b532b15f0d4ab14288dd36b8d163f0234d596a4 Mon Sep 17 00:00:00 2001 From: Onkar Ruikar <87750369+OnkarRuikar@users.noreply.github.com> Date: Mon, 5 Sep 2022 10:47:42 +0530 Subject: [PATCH] Canvas: update BCD info (#20302) --- files/en-us/web/api/canvasrenderingcontext2d/index.md | 2 +- .../web/api/canvasrenderingcontext2d/iscontextlost/index.md | 3 ++- files/en-us/web/api/canvasrenderingcontext2d/reset/index.md | 3 ++- .../en-us/web/api/htmlcanvaselement/contextlost_event/index.md | 3 ++- .../web/api/htmlcanvaselement/contextrestored_event/index.md | 3 ++- files/en-us/web/api/offscreencanvas/index.md | 3 ++- files/en-us/web/api/offscreencanvasrenderingcontext2d/index.md | 2 +- files/en-us/web/css/image/index.md | 2 +- .../web/javascript/reference/global_objects/function/index.md | 2 +- 9 files changed, 14 insertions(+), 9 deletions(-) diff --git a/files/en-us/web/api/canvasrenderingcontext2d/index.md b/files/en-us/web/api/canvasrenderingcontext2d/index.md index 514ff4d672ae529..c7f2f6f5d516f73 100644 --- a/files/en-us/web/api/canvasrenderingcontext2d/index.md +++ b/files/en-us/web/api/canvasrenderingcontext2d/index.md @@ -67,7 +67,7 @@ The resulting drawing looks like this: ### Context -- {{domxref("CanvasRenderingContext2D.isContextLost()")}} +- {{domxref("CanvasRenderingContext2D.isContextLost()")}} {{Experimental_Inline}} - : Returns `true` if the rendering context was lost. ### Drawing rectangles diff --git a/files/en-us/web/api/canvasrenderingcontext2d/iscontextlost/index.md b/files/en-us/web/api/canvasrenderingcontext2d/iscontextlost/index.md index 0e47e6a1f4fe023..7aef125f97b7f7c 100644 --- a/files/en-us/web/api/canvasrenderingcontext2d/iscontextlost/index.md +++ b/files/en-us/web/api/canvasrenderingcontext2d/iscontextlost/index.md @@ -8,9 +8,10 @@ tags: - CanvasRenderingContext2D - Method - Reference + - Experimental browser-compat: api.CanvasRenderingContext2D.isContextLost --- -{{APIRef}} +{{APIRef}}{{SeeCompatTable}} The **`CanvasRenderingContext2D.isContextLost()`** method of the Canvas 2D API returns `true` if the rendering context is lost (and has not yet been reset). This might occur due to driver crashes, running out of memory, and so on. diff --git a/files/en-us/web/api/canvasrenderingcontext2d/reset/index.md b/files/en-us/web/api/canvasrenderingcontext2d/reset/index.md index e7607704a0326fb..5da0d79d9548701 100644 --- a/files/en-us/web/api/canvasrenderingcontext2d/reset/index.md +++ b/files/en-us/web/api/canvasrenderingcontext2d/reset/index.md @@ -8,10 +8,11 @@ tags: - CanvasRenderingContext2D - Method - Reference + - Experimental browser-compat: api.CanvasRenderingContext2D.reset --- -{{APIRef}} +{{APIRef}}{{SeeCompatTable}} The **`CanvasRenderingContext2D.reset()`** method of the Canvas 2D API resets the rendering context to its default state, allowing it to be reused for drawing something else without having to explicitly reset all the properties. diff --git a/files/en-us/web/api/htmlcanvaselement/contextlost_event/index.md b/files/en-us/web/api/htmlcanvaselement/contextlost_event/index.md index d2bc0630ea44ad6..ee5581839b6d2b9 100644 --- a/files/en-us/web/api/htmlcanvaselement/contextlost_event/index.md +++ b/files/en-us/web/api/htmlcanvaselement/contextlost_event/index.md @@ -6,9 +6,10 @@ tags: - Event - Reference - Canvas + - Experimental browser-compat: api.HTMLCanvasElement.contextlost_event --- -{{APIRef}} +{{APIRef}}{{SeeCompatTable}} The **`contextlost`** event of the [Canvas API](/en-US/docs/Web/API/Canvas_API) is fired if the user agent detects that the backing storage associated with a [`CanvasRenderingContext2D`](/en-US/docs/Web/API/CanvasRenderingContext2D) context is lost. Contexts can be lost for several reasons like driver crashes or the application runs out of memory, etc. diff --git a/files/en-us/web/api/htmlcanvaselement/contextrestored_event/index.md b/files/en-us/web/api/htmlcanvaselement/contextrestored_event/index.md index d57410d3a812004..239fca850640fbc 100644 --- a/files/en-us/web/api/htmlcanvaselement/contextrestored_event/index.md +++ b/files/en-us/web/api/htmlcanvaselement/contextrestored_event/index.md @@ -6,9 +6,10 @@ tags: - Event - Reference - Canvas + - Experimental browser-compat: api.HTMLCanvasElement.contextrestored_event --- -{{APIRef}} +{{APIRef}}{{SeeCompatTable}} The **`contextrestored`** event of the [Canvas API](/en-US/docs/Web/API/Canvas_API) is fired if the user agent restores the backing storage for a [`CanvasRenderingContext2D`](/en-US/docs/Web/API/CanvasRenderingContext2D). diff --git a/files/en-us/web/api/offscreencanvas/index.md b/files/en-us/web/api/offscreencanvas/index.md index 2d8a2eb968bb7b8..c0ef9d973b81896 100644 --- a/files/en-us/web/api/offscreencanvas/index.md +++ b/files/en-us/web/api/offscreencanvas/index.md @@ -7,10 +7,11 @@ tags: - Canvas - Interface - Reference + - Experimental browser-compat: api.OffscreenCanvas --- -{{APIRef("Canvas API")}} +{{APIRef("Canvas API")}}{{SeeCompatTable}} When using the {{HtmlElement("canvas")}} element or the [Canvas API](/en-US/docs/Web/API/Canvas_API), rendering, animation, and user interaction usually happen on the main execution thread of a web application. The computation relating to canvas animations and rendering can have a significant impact on application performance. diff --git a/files/en-us/web/api/offscreencanvasrenderingcontext2d/index.md b/files/en-us/web/api/offscreencanvasrenderingcontext2d/index.md index 7981787ba4b6b32..8462d19be6778cd 100644 --- a/files/en-us/web/api/offscreencanvasrenderingcontext2d/index.md +++ b/files/en-us/web/api/offscreencanvasrenderingcontext2d/index.md @@ -213,7 +213,7 @@ The following methods can be used to manipulate paths of objects. Objects in the `CanvasRenderingContext2D` rendering context have a current transformation matrix and methods to manipulate it. The transformation matrix is applied when creating the current default path, painting text, shapes and {{domxref("Path2D")}} objects. The methods listed below remain for historical and compatibility reasons as {{domxref("DOMMatrix")}} objects are used in most parts of the API nowadays and will be used in the future instead. -- {{domxref("CanvasRenderingContext2D.getTransform()")}} +- {{domxref("CanvasRenderingContext2D.getTransform()")}} {{Experimental_Inline}} - : Retrieves the current transformation matrix being applied to the context. - {{domxref("CanvasRenderingContext2D.rotate()")}} - : Adds a rotation to the transformation matrix. The angle argument represents a clockwise rotation angle and is expressed in radians. diff --git a/files/en-us/web/css/image/index.md b/files/en-us/web/css/image/index.md index 0c626dc947bb01e..fe633075a568f51 100644 --- a/files/en-us/web/css/image/index.md +++ b/files/en-us/web/css/image/index.md @@ -110,7 +110,7 @@ image-set('cat.jpg' 1x, 'dog.jpg' 1x) /* every image in an image set must have a ## See also - {{CSSxRef("<gradient>")}} -- {{CSSxRef("element","element()")}} +- {{CSSxRef("element","element()")}} {{Experimental_Inline}} - {{CSSxRef("image/image", "image()")}} - {{CSSxRef("image/image-set","image-set()")}} - {{CSSxRef("cross-fade","cross-fade()")}} diff --git a/files/en-us/web/javascript/reference/global_objects/function/index.md b/files/en-us/web/javascript/reference/global_objects/function/index.md index 245adc342f2937d..2c0bcafafe870ec 100644 --- a/files/en-us/web/javascript/reference/global_objects/function/index.md +++ b/files/en-us/web/javascript/reference/global_objects/function/index.md @@ -21,7 +21,7 @@ Every JavaScript function is actually a `Function` object. This can be seen with - {{jsxref("Function.prototype.arguments")}} {{Deprecated_Inline}} {{Non-standard_Inline}} - : An array corresponding to the arguments passed to a function. This is deprecated as a property of {{jsxref("Function")}}. Use the {{jsxref("Functions/arguments", "arguments")}} object (available within the function) instead. -- {{jsxref("Function.prototype.caller")}} {{Non-standard_Inline}} +- {{jsxref("Function.prototype.caller")}} {{Non-standard_Inline}} {{Deprecated_Inline}} - : Specifies the function that invoked the currently executing function. This property is deprecated, and is only functional for some non-strict functions. - {{jsxref("Function.prototype.displayName")}} {{Non-standard_Inline}} {{Optional_Inline}}