message: fix(SVG): use dominant-baseline instead of alignment-baseline
  fix(SVG): use dominant baseline instead of alignment baseline
diff: @@ -369,7 +369,7 @@ var svgTextDrawRectText = function (el, rect, textRect) {
  ].join(' ')
  || textContain.DEFAULT_FONT;
  - var verticalAlign = getVerticalAlignForSvg(style.textVerticalAlign);
  + var verticalAlign = style.textVerticalAlign;
  textRect = textContain.getBoundingRect(text, font, align,
  verticalAlign, style.textPadding, style.textLineHeight);
  @@ -386,11 +386,11 @@ var svgTextDrawRectText = function (el, rect, textRect) {
  );
  x = newPos.x;
  y = newPos.y;
  - verticalAlign = getVerticalAlignForSvg(newPos.textVerticalAlign);
  + verticalAlign = newPos.textVerticalAlign;
  align = newPos.textAlign;
  }
  - attr(textSvgEl, 'alignment-baseline', verticalAlign);
  + setVerticalAlign(textSvgEl, verticalAlign);
  if (font) {
  textSvgEl.style.font = font;
  @@ -458,7 +458,7 @@ var svgTextDrawRectText = function (el, rect, textRect) {
  }
  var dy = 0;
  - if (verticalAlign === 'after-edge') {
  + if (verticalAlign === 'bottom') {
  dy = -textRect.height + lineHeight;
  textPadding && (dy -= textPadding[2]);
  }
  @@ -480,7 +480,7 @@ var svgTextDrawRectText = function (el, rect, textRect) {
  if (!tspan) {
  tspan = tspanList[i] = createElement('tspan');
  textSvgEl.appendChild(tspan);
  - attr(tspan, 'alignment-baseline', verticalAlign);
  + setVerticalAlign(tspan, verticalAlign);
  attr(tspan, 'text-anchor', textAnchor);
  }
  else {
  @@ -512,15 +512,21 @@ var svgTextDrawRectText = function (el, rect, textRect) {
  }
  };
  -function getVerticalAlignForSvg(verticalAlign) {
  - if (verticalAlign === 'middle') {
  - return 'middle';
  - }
  - else if (verticalAlign === 'bottom') {
  - return 'after-edge';
  - }
  - else {
  - return 'hanging';
  +function setVerticalAlign(textSvgEl, verticalAlign) {
  + switch (verticalAlign) {
  + case 'middle':
  + attr(textSvgEl, 'dominant-baseline', 'middle');
  + attr(textSvgEl, 'alignment-baseline', 'middle');
  + break;
  +
  + case 'bottom':
  + attr(textSvgEl, 'dominant-baseline', 'ideographic');
  + attr(textSvgEl, 'alignment-baseline', 'ideographic');
  + break;
  +
  + default:
  + attr(textSvgEl, 'dominant-baseline', 'hanging');
  + attr(textSvgEl, 'alignment-baseline', 'hanging');
  }
  }
  