diff --git a/source b/source index 55b15337e83..6328736aac7 100644 --- a/source +++ b/source @@ -60932,12 +60932,12 @@ interface mixin CanvasTextDrawingStyles { attribute CanvasTextAlign textAlign; // (default: "start") attribute CanvasTextBaseline textBaseline; // (default: "alphabetic") attribute CanvasDirection direction; // (default: "inherit") - attribute double textLetterSpacing; // (default: 0) - attribute double textWordSpacing; // (default: 0) + attribute double letterSpacing; // (default: 0) attribute CanvasFontKerning fontKerning; // (default: "auto") attribute CanvasFontStretch fontStretch; // (default: "normal") attribute CanvasFontVariantCaps fontVariantCaps; // (default: "normal") attribute CanvasTextRendering textRendering; // (default: "auto") + attribute double wordSpacing; // (default: 0) }; interface mixin CanvasPath { @@ -61393,12 +61393,12 @@ context.fillRect(100,0,50,50); // only this square remains data-x="dom-context-2d-textAlign">textAlign, textBaseline, direction, textLetterSpacing, textWordSpacing, letterSpacing, fontKerning, fontStretch, fontVariantCaps, textRendering, wordSpacing, imageSmoothingEnabled, imageSmoothingQuality.
  • The current dash list.
  • @@ -61912,8 +61912,8 @@ transform. ack Shaun Morris. --> data-x="dom-context-2d-direction-inherit">inherit".

    -
    context.textLetterSpacing [ = value ]
    -
    styles.textLetterSpacing [ = value ]
    +
    context.letterSpacing [ = value ]
    +
    styles.letterSpacing [ = value ]

    Returns the current spacing between characters in the text.

    @@ -61921,15 +61921,6 @@ transform. ack Shaun Morris. --> apart, while negative values brings them closer together. The default is 0.

    -
    context.textWordSpacing [ = value ]
    -
    styles.textWordSpacing [ = value ]
    -
    -

    Returns the current spacing between words in the text.

    - -

    Can be set, to change spacing between words. Postive values spreads words further apart, - while negative values brings them closer together. The default is 0.

    -
    -
    context.fontKerning [ = value ]
    styles.fontKerning [ = value ]
    @@ -61969,6 +61960,15 @@ transform. ack Shaun Morris. --> below. Other values are ignored. The default is "auto".

    + +
    context.wordSpacing [ = value ]
    +
    styles.wordSpacing [ = value ]
    +
    +

    Returns the current spacing between words in the text.

    + +

    Can be set, to change spacing between words. Postive values spreads words further apart, + while negative values brings them closer together. The default is 0.

    +
    @@ -62121,19 +62121,11 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]); data-x="dom-context-2d-direction-inherit">inherit".

    The textLetterSpacing IDL attribute, on - getting, must return the current value. On setting, the current value must be changed to the new - value, where values may be positive or negative. When the object implementing the - CanvasTextDrawingStyles interface is created, - the textLetterSpacing attribute must - initially have the value 0.

    - -

    The textWordSpacing IDL attribute, on + data-x="dom-context-2d-letterSpacing">letterSpacing IDL attribute, on getting, must return the current value. On setting, the current value must be changed to the new value, where values may be positive or negative. When the object implementing the CanvasTextDrawingStyles interface is created, - the textWordSpacing attribute must + the letterSpacing attribute must initially have the value 0.

    The value. When the object implementing the CanvasTextDrawingStyles interface is created, the textRendering attribute must initially have the value "auto".

    + +

    The wordSpacing IDL attribute, on + getting, must return the current value. On setting, the current value must be changed to the new + value, where values may be positive or negative. When the object implementing the + CanvasTextDrawingStyles interface is created, + the wordSpacing attribute must + initially have the value 0.

    The textAlign attribute's allowed keywords are @@ -62424,7 +62424,7 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]); 'letter-spacing' - target's textLetterSpacing + target's letterSpacing SVG text-rendering @@ -62436,7 +62436,7 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]); 'word-spacing' - target's textWordSpacing + target's wordSpacing