diff --git a/source b/source
index 91a98c390ef..d03ada738ef 100644
--- a/source
+++ b/source
@@ -65274,6 +65274,7 @@ interface mixin CanvasPathDrawingStyles {
interface mixin CanvasTextDrawingStyles {
// text
+ attribute DOMString lang; // (default: "inherit")
attribute DOMString font; // (default 10px sans-serif)
attribute CanvasTextAlign textAlign; // (default: "start")
attribute CanvasTextBaseline textBaseline; // (default: "alphabetic")
@@ -65738,6 +65739,7 @@ context.fillRect(100,0,50,50); // only this square remains
data-x="dom-context-2d-shadowOffsetX">shadowOffsetX, Returns the current language setting. Can be set, to change the language used when resolving fonts. The syntax and valid values
+ are the same as those for the lang element attribute, or the
+ value "inherit". The default is "inherit", which uses the lang of the
+ shadowOffsetY
, shadowBlur
, lang
, font
, textAlign
, textBaseline
,
Notice that the font is only loaded inside the worker, and not in the document context.Text styles
+
context.lang [ = value ]
styles.lang [ = value ]
canvas
element, or the Document associated with a Worker when there is no
+ canvas
element, or a user-agent default language when neither source exists.context.font [ = value ]
styles.font [ = value ]
The choice of fonts and glyphs within a font may vary according to the lang
+ IDL attribute. On setting, lang
must be
+ a valid BCP 47 language tag or the string "inherit".
+ To determine the used value
+ for lang
, use the following steps:
If object's lang
value is
+ "inherit", then
If object's font style source object is a canvas
+ element, then return the element's lang atribute
+ value.
Otherwise, object's font style source object is an
+ OffscreenCanvas
object:
Let global be object's relevant global + object.
If global is a Window
object, then return the
+ lang attribute from global's
+ associated Document
.
Otherwise, return a user-agent-defined default lang.
Otherwise, the used value is the lang
+ value.
The lang
IDL attribute, on getting, must return
+ the current value.
The font
IDL attribute, on setting, must be parsed as a CSS <'font'> value (but
without supporting property-independent style sheet syntax like 'inherit'), and the resulting font
- must be assigned to the context, with the 'line-height' component forced to 'normal',
- with the 'font-size' component converted to CSS pixels,
- and with system fonts being computed to explicit values. If the new value is syntactically
- incorrect (including using property-independent style sheet syntax like 'inherit' or 'initial'),
- then it must be ignored, without assigning a new font value. CSS
lang
, with the 'line-height'
+ component forced to 'normal', with the 'font-size' component converted to CSS pixels, and with system fonts being computed to explicit values. If the
+ new value is syntactically incorrect (including using property-independent style sheet syntax
+ like 'inherit' or 'initial'), then it must be ignored, without assigning a new font value.
+ CSS
Font family names must be interpreted in the context of the font style source
object when the font is to be used; any fonts embedded using Default to the directionality of the Use the following process to determine which direction to treat input to the text preparation algorithm If object's font style source object is a If dir attribute of the element is
+ Otherwise, use the value of the dir attribute of the element
+ as the direction. Otherwise, object's font style source object is an
+ Let global be object's relevant global
+ object. If global is a Let Document be the global's
+ associated If the value of the dir attribute from
+ Document is Otherwise, use the value of the dir attribute from
+ Document as the direction. Otherwise, treat input to the text preparation algorithm as left-to-right text. The
inherit
- canvas
element or Document
- as appropriate.
+
+ canvas
+ element:
+
+
+ auto
then use the element's computed value of
+ 'direction' as the direction.OffscreenCanvas
object:
+
+ Window
object:
+
+ Document
.auto
then use the
+ Document's computed value of 'direction'
+ as the direction.fontKerning
attribute's allowed keywords
@@ -146515,6 +146613,7 @@ INSERT INTERFACES HERE
Ştefan Vargyas,
Stefan Weiss,
Steffen Meschkat,
+ Stephen Chenney,
Stephen Ma,
Stephen Stewart,
Stephen White,