W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2019

Re: [csswg-drafts] [css-text] text-transform's design, intent and reality resolution (#3775)

From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
Date: Thu, 04 Apr 2019 00:03:19 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-479700875-1554336197-sysbot+gh@w3.org>
The CSS Working Group just discussed `text-transform's design, intent and reality resolution`.

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: text-transform's design, intent and reality resolution<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/3775<br>
&lt;dael> astearns: Wanted to have this introduced so can make a bit of progress before bringing in more people<br>
&lt;dael> birtles: I don't see where this was spec originally in the design, but at some point it became a stated thing we have talked about about the intent fo text-transform and what it exposes to screen readers and why<br>
&lt;astearns> s/birtles/bkardell_/<br>
&lt;dael> birtles: Feel like I dropped the ball a bit on kana discussions because I know it wasn't reality and assumed other people did too. Some of the text stuff I don't feel I cam comment so wasn't paying close attention<br>
&lt;florian> q+<br>
&lt;dael> bkardell_: Opened a different issue requesting something that is inline with how screenreaders work. That changes to how we have designed to not expose text to screenreaders. It's come up that it does not match reality<br>
&lt;astearns> ack bkardell_<br>
&lt;dael> bkardell_: AT and browsers have chosen universally to expose transform text. I'd like to consider that so that we can properly discuss the other issue<br>
&lt;dael> bkardell_: My position is that the ones that exist and in wide use are stated design principle is out of touch with reality. It's a concious choice that's what users want. At a min our principle needs some finesse<br>
&lt;IanPouncey> q+<br>
&lt;astearns> ack florian<br>
&lt;dael> florian: The discussion is a bit long winded, I'll jump to where we are. I don't see the same contridiction of bkardell_ if we look a little deeper. DOn't think ti's interesting to debate what screen reader users what, the exprests have said. Screen readers do not give access to raw doc, they present it. It's easier to include the transform. I don't think that makes semantics change<br>
&lt;Rossen> q+<br>
&lt;dael> florian: I don't think we could do that. There are places where we don't present CSS so we can't say that text-transforms are an intrinsic part of doc that can't be removed. If screenreaders as one UA think best way to present is to apply the text-transform, great. But I don't think we can go from there to never not allow them to be applied. If you introduce a new text-transform old browsers won't know<br>
&lt;AmeliaBR> q+<br>
&lt;iank_> q+<br>
&lt;dael> florian: I thinkw e have to rec that the doc is the doc and the text transforms need to be allowed to apply. I think the claim that case transforms are desirable is credible, but I don't want to generalize to say all transforms always must be preserved. I think cjk and i18n transforms you want the other way.<br>
&lt;dael> florian: I think we need to discuss transform by transforms, but can't say all must be preserved<br>
&lt;astearns> ack fantasai<br>
&lt;dael> fantasai: I agree with florian that text-transform can't be intrinsic part of doc semantics. They were designed as a way to have this distinction partly. If we don't have them to diff doc and visual rendering we'll have to find a way to do it.<br>
&lt;dael> fantasai: Someone suggested creating a custom font, I don't want to get intot hat arms race<br>
&lt;dael> fantasai: I'm not sure how deeply this investigated in the past. I don't see anything in bugzilla. Chrome issues had people arguing on both sides. I don't know if this has been inestigated deeply enough. We need to talk to the people we need to talk to and figure out what to fall out. If no discussion on Gecko it's prob what's convenient<br>
&lt;astearns> ack IanPouncey<br>
&lt;dael> IanPouncey: Few points, to reiterat bkardell_ it seemed to those of us who work with screen readers that this was common knowledge, that's on us. For what florian said I think misconception about where problem lies. I'ts not screen readers doing transform, it's the browser and a11y tree exposing it<br>
&lt;florian> q+ to respond to IanPouncey<br>
&lt;dael> IanPouncey: It's not screen reader doing anything in most modern browser. Any of the ideas of a screen reader making a decision about what to present is problematic b/c you cannot reverse a transform to uppercase b/c you don't know what char were uppercase<br>
&lt;dael> IanPouncey: Speculating on this, I wonder if similar issue for content is on teh radar. I think there was an assumption when prop introduced that it's not exposed to screen readers and it is now. I wonder if there's a similar problem there<br>
&lt;astearns> ack Rossen<br>
&lt;fantasai> s/figure out what to fall out/figure out what to do. It's possible the current situation is what fell out of original implementations, and screenreaders just dealt with it but it's not ideal/<br>
&lt;dael> Rossen: Way screen readers work is a long discussion. How text is represented also heavily depends on current platoform support and AT consuming that ingo. nvbia on windows will have different characteristics to express richness of text comparred to narrator using ui automation<br>
&lt;fantasai> Point about delivering transformed text through AT meaning screenreaders can't access original text even if they want to is imho important<br>
&lt;dael> Rossen: One thing I know from interacting with the community and a11y wgs and immpl a11y the thing I can tell you is a lot of people think of screen readers for the blind. It's part of the users but not all. Most people are those with low vision. They can see parts of the screen. So when you start producing disparity between rendered results and what screen reader represents it becomes confusing<br>
&lt;dael> Rossen: Consider editing scenarios- most people will navigate text by character to check spelling. If at that itme you have text transform that caps for example for them to not know it's upper case will be confusing. Same reason why we map ital to em, lots of font features that map to a11y prop I don't see why this should be unique<br>
&lt;dael> Rossen: Other thing I want to give a big shout out, CSSAOM would be ideal place to continue this discussion<br>
&lt;astearns> ack AmeliaBR<br>
&lt;dael> AmeliaBR: There's 2 aspects to the discussion. What should happen, how is best way to expose full information. THen specific practical issue in that we have recently added values ot text transform with some impl and this new prop for math variants<br>
&lt;fantasai> wrt checking spelling in editing environment... ideally you want to know what text you're actually typing, for when the text transform goes away -- source text should be following standard capitalization rules, would be problematic if ::first-line { text-transform: uppercase; } led someone to type in all-caps when replacing one word with another in the first phrase of a para<br>
&lt;dael> AmeliaBR: By putting it all in text-transform it forcecs us to treat them the same for exposing before or after transform values<br>
&lt;dael> AmeliaBR: Even if not complete agree on optimal for exposing case changes I'm trusing florian that exposing CJK typgraphical is a problematic situation from a11y.<br>
&lt;dael> AmeliaBR: If mathML comes through it's very important to expose transformation.<br>
&lt;fantasai> generally, editing text with text-transform turned on is going to be very confusing regardless...<br>
&lt;iank_> q-<br>
&lt;dael> AmeliaBR: With these different semantic impacts it might be worth discussing if these should be split up, even if it's transform to long hands that could all reset by a shorthand but there is a text-transform case that's different then CJK text-transform. If we sep to different prop we can start talking semantics and what stange transformations happen<br>
&lt;astearns> q+<br>
&lt;dael> AmeliaBR: Esp in terms of what's exposed to a11y, copy/paste APIs, lots of places where people use text-transform and if they're not all equal maybe use different properties<br>
&lt;astearns> ack florian<br>
&lt;Zakim> florian, you wanted to respond to IanPouncey<br>
&lt;fantasai> reason to have separate longhands is needing them to cascade separately... if the only concern is what impacts they have, we can categorize within the spec<br>
&lt;AmeliaBR> s/a11y, copy/a11y, HTML innerText, copy/<br>
&lt;IanPouncey> q+<br>
&lt;dael> florian: I am aware about diff IanPouncey mentioned between what screen readers do and what's in at. Idea is that text in AT would be end transformed text and have the original information so screen readers can make decision. In case of case transforms if every screen reader wants to do the same thing with it and the current AT does the transform already it will be uphill to untransform. For case transforms if it's a standard today fine let's leave it<br>
&lt;bkardell_> are we on to the math case already?<br>
&lt;dael> florian: But that's what I want to Japanese which is keep untransformed text and keep information about transforms so that screen readers can add extra information if they want. The Math case I think is kind of related. I don't thinkw e can rely on the transforms to change document semnatics.<br>
&lt;dael> florian: If we want to introduce a new semantic differencec we have to introduce it in the document and that can impact the AT tree. We can't just change the font and claim it lets us introduce semantic differences that would change the meaning of the document. upper case is useful but not changing doc meanings. If we want to introduce math it will fail in all cases<br>
&lt;dael> astearns: To respond to AmeliaBR- I think the idea of separating properties is interesting but maybe not entirely nec. If e want we can spec what happens to values or prop and they can differ.<br>
&lt;dael> astearns: To respond to florian I think there is prob a fallback that can work for new math transforms. If you see support you get fractor, if you don't you do extra styling<br>
&lt;dael> florian: And it disappears in read<br>
&lt;dael> astearns: Fair<br>
&lt;AmeliaBR> q+<br>
&lt;astearns> ack astearns<br>
&lt;astearns> ack IanPouncey<br>
&lt;dael> florian: If you want to style that's fine. Introducing fundimentally different semantics is not fine.<br>
&lt;florian> s/is not fine/won't work/<br>
&lt;Rossen> :)<br>
&lt;dael> IanPouncey: Cautious +1 to expose detail of transform and original content. I can see if there's any appetite for that. Hopefully wecan get idea if that's possible. Also acknowledging the prompt to add CSSAAM to this discussion<br>
&lt;astearns> ack AmeliaBR<br>
&lt;dael> AmeliaBR: Follow up on florian concern about semantics in document. The request for math transforms is from MathML as a way to desc behavior of MathML attribute in a way that can be consistantly impl. That is something where there is semantics in doc level but nice to be able to describe it. Maybe also use same effects in more decorative cases<br>
&lt;dael> florian: Fair and useful so thing into a11y tree is the transformed and may be useful<br>
&lt;dael> astearns: We're at time. The call bridge will stay open if people want to chat and then put the discussion in the issue<br>
&lt;dael> astearns: Thank you all very much<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3775#issuecomment-479700875 using your GitHub account
Received on Thursday, 4 April 2019 00:03:51 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:06 UTC