From 15edcca162f9c272e610a7c93f665d1155e0e8df Mon Sep 17 00:00:00 2001 From: circl Date: Fri, 18 Oct 2024 14:43:16 +0200 Subject: [PATCH] Sync CRC2D.save() saved drawing state attributes with the spec (#36396) --- .../canvasrenderingcontext2d/save/index.md | 44 +++++++++++-------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/files/en-us/web/api/canvasrenderingcontext2d/save/index.md b/files/en-us/web/api/canvasrenderingcontext2d/save/index.md index 230870ce2037002..a7b1840a0052e6f 100644 --- a/files/en-us/web/api/canvasrenderingcontext2d/save/index.md +++ b/files/en-us/web/api/canvasrenderingcontext2d/save/index.md @@ -21,24 +21,32 @@ The drawing state that gets saved onto a stack consists of: - The current clipping region. - The current dash list. - The current values of the following attributes: - {{domxref("CanvasRenderingContext2D.strokeStyle", "strokeStyle")}}, - {{domxref("CanvasRenderingContext2D.fillStyle", "fillStyle")}}, - {{domxref("CanvasRenderingContext2D.globalAlpha", "globalAlpha")}}, - {{domxref("CanvasRenderingContext2D.lineWidth", "lineWidth")}}, - {{domxref("CanvasRenderingContext2D.lineCap", "lineCap")}}, - {{domxref("CanvasRenderingContext2D.lineJoin", "lineJoin")}}, - {{domxref("CanvasRenderingContext2D.miterLimit", "miterLimit")}}, - {{domxref("CanvasRenderingContext2D.lineDashOffset", "lineDashOffset")}}, - {{domxref("CanvasRenderingContext2D.shadowOffsetX", "shadowOffsetX")}}, - {{domxref("CanvasRenderingContext2D.shadowOffsetY", "shadowOffsetY")}}, - {{domxref("CanvasRenderingContext2D.shadowBlur", "shadowBlur")}}, - {{domxref("CanvasRenderingContext2D.shadowColor", "shadowColor")}}, - {{domxref("CanvasRenderingContext2D.globalCompositeOperation", "globalCompositeOperation")}}, - {{domxref("CanvasRenderingContext2D.font", "font")}}, - {{domxref("CanvasRenderingContext2D.textAlign", "textAlign")}}, - {{domxref("CanvasRenderingContext2D.textBaseline", "textBaseline")}}, - {{domxref("CanvasRenderingContext2D.direction", "direction")}}, - {{domxref("CanvasRenderingContext2D.imageSmoothingEnabled", "imageSmoothingEnabled")}}. + - {{domxref("CanvasRenderingContext2D.direction", "direction")}} + - {{domxref("CanvasRenderingContext2D.fillStyle", "fillStyle")}} + - {{domxref("CanvasRenderingContext2D.filter", "filter")}} + - {{domxref("CanvasRenderingContext2D.font", "font")}} + - {{domxref("CanvasRenderingContext2D.fontKerning", "fontKerning")}} + - {{domxref("CanvasRenderingContext2D.fontStretch", "fontStretch")}} + - {{domxref("CanvasRenderingContext2D.fontVariantCaps", "fontVariantCaps")}} + - {{domxref("CanvasRenderingContext2D.globalAlpha", "globalAlpha")}} + - {{domxref("CanvasRenderingContext2D.globalCompositeOperation", "globalCompositeOperation")}} + - {{domxref("CanvasRenderingContext2D.imageSmoothingEnabled", "imageSmoothingEnabled")}} + - {{domxref("CanvasRenderingContext2D.imageSmoothingQuality", "imageSmoothingQuality")}} + - {{domxref("CanvasRenderingContext2D.letterSpacing", "letterSpacing")}} + - {{domxref("CanvasRenderingContext2D.lineCap", "lineCap")}} + - {{domxref("CanvasRenderingContext2D.lineDashOffset", "lineDashOffset")}} + - {{domxref("CanvasRenderingContext2D.lineJoin", "lineJoin")}} + - {{domxref("CanvasRenderingContext2D.lineWidth", "lineWidth")}} + - {{domxref("CanvasRenderingContext2D.miterLimit", "miterLimit")}} + - {{domxref("CanvasRenderingContext2D.shadowBlur", "shadowBlur")}} + - {{domxref("CanvasRenderingContext2D.shadowColor", "shadowColor")}} + - {{domxref("CanvasRenderingContext2D.shadowOffsetX", "shadowOffsetX")}} + - {{domxref("CanvasRenderingContext2D.shadowOffsetY", "shadowOffsetY")}} + - {{domxref("CanvasRenderingContext2D.strokeStyle", "strokeStyle")}} + - {{domxref("CanvasRenderingContext2D.textAlign", "textAlign")}} + - {{domxref("CanvasRenderingContext2D.textBaseline", "textBaseline")}} + - {{domxref("CanvasRenderingContext2D.textRendering", "textRendering")}} + - {{domxref("CanvasRenderingContext2D.wordSpacing", "wordSpacing")}} ## Syntax