W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2020

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

From: Rob Buis via GitHub <sysbot+gh@w3.org>
Date: Mon, 24 Aug 2020 08:45:26 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-678994879-1598258725-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:13 UTC