Skip to content

Commit

Permalink
Sync CRC2D.save() saved drawing state attributes with the spec (#36396)
Browse files Browse the repository at this point in the history
  • Loading branch information
circl-lastname authored Oct 18, 2024
1 parent 2b112ae commit 15edcca
Showing 1 changed file with 26 additions and 18 deletions.
44 changes: 26 additions & 18 deletions files/en-us/web/api/canvasrenderingcontext2d/save/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 15edcca

Please sign in to comment.