Re: [csswg-drafts] [css-text] text-transform values for MathML (#5386)

This would be easily doable with a custom TextTransform::ApplyValue (chromium):

void TextTransform::ApplyValue(StyleResolverState& state, const CSSValue& value) const {
 auto text_transform = To<CSSIdentifierValue>(value).ConvertTo<blink::ETextTransform>();
  if (text_transform == ETextTransform::kMathAuto && state.ParentStyle()->TextTransform() != ETextTransform::kNone) {
    ApplyInherit(state);
    return;
  }
  state.Style()->SetTextTransform(text_transform);
  state.Style()->SetTextTransformIsInherited(false);
}


-- 
GitHub Notification of comment by rwlbuis
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5386#issuecomment-678994879 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 24 August 2020 08:45:27 UTC