Skip to content

Commit

Permalink
Fixups to canvas text and state
Browse files Browse the repository at this point in the history
Fix some typos in the canvas text styles section that were introduced in4d93c06fa604021b7c582940e1a419378237bf44.

Use the current filter and current composition operator in the canvas state section, instead of the public getters, per whatwg#7378 (comment).
  • Loading branch information
Kaiido authored Jan 31, 2022
1 parent d1fca22 commit 318a5e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -61826,8 +61826,10 @@ context.fillRect(100,0,50,50); // only this square remains</code></pre>
<li>The current <span>clipping region</span>.</li>
<li>The current <span data-x="concept-CanvasTextDrawingStyles-letter-spacing">letter
spacing</span>, <span data-x="concept-CanvasTextDrawingStyles-word-spacing">word
spacing</span>, <span data-x="concept-CanvasFillStrokeStyles-fill-style">fill style</span>, and
<span data-x="concept-CanvasFillStrokeStyles-stroke-style">stroke style</span>.</li>
spacing</span>, <span data-x="concept-CanvasFillStrokeStyles-fill-style">fill style</span>,
<span data-x="concept-CanvasFillStrokeStyles-stroke-style">stroke style</span>, <span
data-x="concept-canvas-current-filter">filter</span>, and <span
data-x="current composition operator">composition operator</span>.</li>
<li>The current values of the following attributes: <code
data-x="dom-context-2d-globalAlpha">globalAlpha</code>, <code
data-x="dom-context-2d-lineWidth">lineWidth</code>, <code
Expand All @@ -61839,8 +61841,6 @@ context.fillRect(100,0,50,50); // only this square remains</code></pre>
data-x="dom-context-2d-shadowOffsetY">shadowOffsetY</code>, <code
data-x="dom-context-2d-shadowBlur">shadowBlur</code>, <code
data-x="dom-context-2d-shadowColor">shadowColor</code>, <code
data-x="dom-context-2d-filter">filter</code>, <code
data-x="dom-context-2d-globalCompositeOperation">globalCompositeOperation</code>, <code
data-x="dom-context-2d-font">font</code>, <code
data-x="dom-context-2d-textAlign">textAlign</code>, <code
data-x="dom-context-2d-textBaseline">textBaseline</code>, <code
Expand Down Expand Up @@ -62583,7 +62583,7 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]);</code></pre>
data-x="dom-context-2d-direction">direction</code> attribute must initially have the value "<code
data-x="dom-context-2d-direction-inherit">inherit</code>".</p>

<p>Objects implement the <code>CanvasTextDrawingStyles</code> interface have attributes tha
<p>Objects that implement the <code>CanvasTextDrawingStyles</code> interface have attributes that
control the spacing between letters and words. Such objects have associated <dfn
data-x="concept-CanvasTextDrawingStyles-letter-spacing">letter spacing</dfn> and <dfn
data-x="concept-CanvasTextDrawingStyles-word-spacing">word spacing</dfn> values, which are CSS
Expand Down

0 comments on commit 318a5e6

Please sign in to comment.