- From: Karl Dubost via GitHub <sysbot+gh@w3.org>
- Date: Mon, 07 Nov 2022 05:49:34 +0000
- To: public-css-archive@w3.org
karlcow has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-text] text-transform capitalize for words separated by periods only (no space) == Enter in the URL bar of a browser: ``` data:text/html,<!doctype html><div style="text-transform:capitalize">what.should.we.do</div> ``` Both Safari and Firefox returns: ``` What.should.we.do ``` While chrome returns: ``` What.Should.We.Do ``` The spec unfortunately seems to say that this is implementation dependent: in https://drafts.csswg.org/css-text/#text-transform-mapping > For [capitalize](https://drafts.csswg.org/css-text/#valdef-text-transform-capitalize), what constitutes a “word“ is UA-dependent; [[UAX29]](https://drafts.csswg.org/css-text/#biblio-uax29) is suggested (but not required) for determining such word boundaries. Out-of-flow elements and inline element boundaries must not introduce a [text-transform](https://drafts.csswg.org/css-text/#propdef-text-transform) word boundary and must be ignored when determining such word boundaries. in https://www.unicode.org/reports/tr29/tr29-41.html > The goal of matching user perceptions cannot always be met exactly because the text alone does not always contain enough information to unambiguously decide boundaries. For example, the period (U+002E FULL STOP) is used ambiguously, sometimes for end-of-sentence purposes, sometimes for abbreviations, and sometimes for numbers. In most cases, however, programmatic text boundaries can match user perceptions quite closely, although sometimes the best that can be done is not to surprise the user. There is an issue about this on https://bugs.chromium.org/p/chromium/issues/detail?id=1266835 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8031 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 7 November 2022 05:49:36 UTC