[whatwg] Canvas textBaseline 'middle' conflicting definition

Dirk Schulze dschulze at adobe.com
Sun Mar 30 12:11:45 PDT 2014


Hi,

Canvas let you set alignment baselines with the textBaseline attribute [1].

One of the baseline values is ‘middle’. The description of the ‘middle’ baseline seems to be in conflict with the definition for the alignment-baseline property in CSS[2].

Canvas: The middle of the em square
CSS: [..] it may be computed using 1/2 the "x-height”

What Canvas uses as middle is described as ‘center’ in CSS. Is there a way that we can change the naming and/or definition of ‘middle’ in Canvas?

Greetings,
Dirk

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-textbaseline
[2] http://www.w3.org/TR/SVG11/text.html#TextAlignmentProperties


More information about the whatwg mailing list