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: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Thu, 04 Apr 2019 16:25:28 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-479968381-1554395127-sysbot+gh@w3.org>
> should it [`innerText`] respect only the case-related transforms

I think so, in order to retain a single order of operations for string manipulation, because there are steps that _aren't_ included in `innerText` that need to be included in the accessible text:

1. Remove hidden child elements (`display: none` or `visibility: hidden` or hidden because of shadow trees).
2. Collapse whitespace.
3. Apply case-related text transforms. → **_`innerText`_**
4. Flatten shadow trees (not sure whether it's intentional that this isn't part of `innerText`, but anyway).
5. Insert CSS generated content. → **_accessible text_**
6. Apply CJK typographical text transforms.

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3775#issuecomment-479968381 using your GitHub account
Received on Thursday, 4 April 2019 16:25:37 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:46 UTC