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

The CSS Working Group just discussed `text-transform values for MathML`, and agreed to the following:

* `RESOLVED: Add math-auto to text-transform`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: text-transform values for MathML<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/5386<br>
&lt;fantasai> bkardell_: MathML created and exists with lots of tools/systems that don't have full access to Unicode<br>
&lt;fantasai> bkardell_: So legacy documents and even things written before that available<br>
&lt;fantasai> bkardell_: so number of case where the markup itself contains the information that you need in order to understand that this character that we want to render isn't the literal text value of the element<br>
&lt;fantasai> bkardell_: text-transforms were the solutions that we used<br>
&lt;fantasai> bkardell_: because that's what needs to happen<br>
&lt;fantasai> bkardell_: didn't see any reason to make that specifically hidden or unavailable to users<br>
&lt;fantasai> bkardell_: I know fantasai and Florian had raised some concerns last time<br>
&lt;fantasai> bkardell_: we've talked a bunch since then<br>
&lt;fantasai> bkardell_: fantasai has updated the meta-advice in css-text-3 to provide some nuance<br>
&lt;fantasai> bkardell_: the meaning *is* in the document<br>
&lt;fantasai> bkardell_: I don't know if ppl still object to these or what<br>
&lt;fantasai> fredw: 2 separate cases<br>
&lt;fantasai> fredw: case of math-auto, which is automatic italic<br>
&lt;fantasai> fredw: and this is the most important one<br>
&lt;fantasai> fredw: Not adding any semantics<br>
&lt;fantasai> fredw: default var rendered as italic<br>
&lt;fantasai> fredw: the other was strings for tools/documents not using Unicode<br>
&lt;fantasai> fredw: we are using text-transform to do the transformation even if MathML says to preserve the semantic<br>
&lt;fantasai> fredw: maybe a bit controversial<br>
&lt;fantasai> fredw: Florian was saying it's OK as long as we have the mathvariant attribute in the markup<br>
&lt;fantasai> fredw: if ppl really don't like, can only add math-auto one<br>
&lt;fantasai> fredw: might break some back compat, might need a polyfill, but...<br>
&lt;fantasai> NeilS: could be done internally and not break anything<br>
&lt;fantasai> NeilS: My concern is a11y, will changed character be in the a11y tree<br>
&lt;fantasai> bkardell_: had several ppl who implement screenreaders saying that the transform value is exposed on existing ones, and that was a sticking point because we don't always want that<br>
&lt;fantasai> bkardell_: certainly we can go either way here<br>
&lt;fantasai> bkardell_: either it will be, or it won't be, exposed to screenreaders<br>
&lt;fantasai> NeilS: As long as exposed to screenreaders, then no a11y issue<br>
&lt;faceless2> +1 to Neils comment<br>
&lt;fantasai> bkardell_: There's a specific example in the issue itself<br>
&lt;fantasai> bkardell_: to non-Math ppl like myself, not intuitive<br>
&lt;fantasai> emilio: Proposal of math-auto<br>
&lt;fantasai> emilio: is it like user-select, like auto behaves as inherit or something?<br>
&lt;fantasai> emilio: it's not clear to me<br>
&lt;fantasai> emilio: seems like pseudo-code that Rob posted would be computed value time which is a bit odd<br>
&lt;fantasai> fredw: basically transformation, whether italic or not  [...]<br>
&lt;fantasai> fredw: it doesn't copute to italic<br>
&lt;fantasai> s/copute/compute/<br>
&lt;fantasai> iank_: would it be fair to say that you'd apply to ...<br>
&lt;fantasai> fredw: only to mi element<br>
&lt;fantasai> fredw: mi { text-transform: math-auto }<br>
&lt;fantasai> fredw: Takes effect when only one letter<br>
&lt;fantasai> fredw: don't think it can be computed<br>
&lt;fantasai> iank_: the specific variant is based on the attribute on the mi element?<br>
&lt;fantasai> bkardell_: in the example or in general?<br>
&lt;fantasai> bkardell_: mi is special, because it has this idea of a single-letter identifier<br>
&lt;fantasai> bkardell_: those are treated stylistically a certain way<br>
&lt;fantasai> bkardell_: but that's only stylistic, no meaning<br>
&lt;fantasai> bkardell_: but math-variant is where you provide additional semantics missing from your lack of character support<br>
&lt;fantasai> iank_: so if you have mathvariant specified, it turns off that auto text-transform behavior?<br>
&lt;fantasai> faceless2: mathvariant is acting as a preshint<br>
&lt;fantasai> faceless2: but math-auto, if no other math-transform is set<br>
&lt;fantasai> faceless2: it would be italicized if it was one letter<br>
&lt;fantasai> iank_: so also have all the other math transform values<br>
&lt;fantasai> fredw: can override the default behavior<br>
&lt;fantasai> iank_: so it's for this leaf to do this slight magical behavior<br>
&lt;fantasai> NeilS: I think math-auto is really presentation<br>
&lt;fantasai> NeilS: Others are there for legacy issue, and not presentation, should actually map to a different character<br>
&lt;fantasai> NeilS: that's why may not be appropriate for CSS<br>
&lt;bkardell_> fantasai:  I guess I have 1 question and 1 concern...<br>
&lt;bkardell_> fantasai: does the auto italic thing be a text transform really, or does it really just want font styling?<br>
&lt;bkardell_> fredw: the way math fonts are designed, you do<br>
&lt;bkardell_> fantasai: the other ones you do want to be a semantic effect. I am a little uncomfortable with this.<br>
&lt;bkardell_> fantasai:  whatever screen readers do it's intention was clear and I don't love changing that<br>
&lt;fantasai> astearns: if this is only way to get semantics for legacy stuff, do we really want to expose it to CSS so that it can be used on new things?<br>
&lt;fantasai> bkardell_: MathML Core 1 is a pretty minimal subset, there are lots of things that use more elements than we're including<br>
&lt;fantasai> bkardell_: and the intent is for mathml to have a healthy future with additional levels<br>
&lt;fantasai> bkardell_: so will be unknown elements<br>
&lt;fantasai> bkardell_: so weird to say you don't have access to the magic to make other elements work like L1<br>
&lt;fantasai> iank_: broadly agree with that<br>
&lt;fantasai> iank_: also from what we've heard from screenreader developers<br>
&lt;fantasai> iank_: this sort of text-transform is only presentation<br>
&lt;fantasai> iank_: that ship sailed a long time ago<br>
&lt;fantasai> bkardell_: it's not that they couldn't be that<br>
&lt;fantasai> bkardell_: the new one has to be<br>
&lt;fantasai> iank_: text-transform: uppercase is definitely exposed to screenreaders<br>
&lt;fantasai> NeilS: Another case we haven't resolved yet<br>
&lt;fantasai> NeilS: is hyphen-minus<br>
&lt;fantasai> NeilS: vs minus<br>
&lt;fantasai> NeilS: They're defined to be equivalents<br>
&lt;fantasai> NeilS: it should map hyphen-minus to U+2122 MINUS<br>
&lt;fantasai> NeilS: Could imagine that text-transform would be the way to do this as well<br>
&lt;bkardell_> fantasai: you could go either way with that one<br>
&lt;fantasai> faceless2: You'd also struggle to do that with text-transform<br>
&lt;fantasai> faceless2: apply to whole document, then declaration for e.g. fraktur would override and disable<br>
&lt;fantasai> bkardell_: I suggest we either resolve or move on<br>
&lt;fantasai> fredw: maybe just resolve on math-auto, and unsure for rest<br>
&lt;fantasai> astearns: I think I heard you say that math-auto is the only one you have implemented so far?<br>
&lt;fantasai> bkardell_: upstream chromium<br>
&lt;fantasai> fredw: we have the others implemented in a separate branch<br>
&lt;fantasai> astearns: so let's resolve on math-auto<br>
&lt;fantasai> astearns: any objections to adding math-auto to text-transform?<br>
&lt;fantasai> emilio: Not quite objection, but want to clarify how it behaves exactly<br>
&lt;fantasai> astearns: resolve to add, then work on details<br>
&lt;fantasai> RESOLVED: Add math-auto to text-transform<br>
&lt;fantasai> astearns: still seems like there's concerns around the rest of math-values<br>
&lt;fantasai> faceless2: The only concerns are wrt exposing to screenreaders?<br>
&lt;fantasai> astearns: there seem to be a lot of them, also, that's my concern<br>
&lt;fantasai> fantasai: I don't like adding things that are supposed to alter semantics to CSS.<br>
&lt;fantasai> astearns: let's hold off on these for now<br>
&lt;fantasai> fantasai: ...<br>
&lt;fantasai> iank_: would it be possible to add a new HTML-level attribute with mathvariant and then, if you set `text-transform` to auto that'll read the attribute and apply it?<br>
&lt;fantasai> iank_: Semantics would still be in the document, just whether you apply it would be in CSS<br>
&lt;fantasai> NeilS: I don't think it makes sense to add something new<br>
&lt;fantasai> NeilS: this is all for legacy support<br>
&lt;fantasai> bkardell_: maybe talk about that, maybe at HTML layer we can do something<br>
&lt;fantasai> NeilS: I have to drop off for another MathML meeting<br>
</details>


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


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

Received on Thursday, 10 September 2020 16:54:45 UTC