"text-transform: capitalize" needs to understand word boundaries
Categories
(Core :: Layout: Text and Fonts, defect, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox113 | --- | fixed |
People
(Reporter: travis.seitler, Assigned: jfkthame)
References
()
Details
Attachments
(4 files)
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
Comment 3•22 years ago
|
||
Updated•22 years ago
|
Comment 4•22 years ago
|
||
Updated•22 years ago
|
Comment 5•21 years ago
|
||
Comment 6•19 years ago
|
||
Updated•19 years ago
|
Comment 7•17 years ago
|
||
Comment 8•17 years ago
|
||
Updated•16 years ago
|
Comment 10•13 years ago
|
||
Updated•3 years ago
|
| Assignee | ||
Comment 11•2 years ago
|
||
I think we should consider adjusting the behavior here, so that a letter after word-internal punctuation gets capitalized (so "Word-Internal" rather than "Word-internal", if applied to this sentence). My sense is that this is more often the desired result than not, and it will align us more closely with how webkit/blink-based browsers behave.
(I'll note, though, that whatever we do, there will inevitably be cases where the result turns out to be inferior. Compare
data:text/html,<span style="text-transform: capitalize;">how does your country spell "colo[u]r"?</span>
between Firefox and the other browsers. There's no perfect solution here.)
| Assignee | ||
Comment 12•2 years ago
|
||
No change in behavior; this just gives us our own version of the general category constants,
so we can avoid depending on ICU's constants elsewhere in the codebase.
Updated•2 years ago
|
| Assignee | ||
Comment 13•2 years ago
|
||
This implements the adjustment to our behavior, bringing us closer to the other browsers
(although with a better result for examples like "colo[u]r", which we continue to treat
as one word rather than three).
Simple reftest included; for now, I've put it with our in-house tests rather than under
web-platform-tests because the exact behavior here is somewhat under-specified.
Depends on D173203
Comment 14•2 years ago
|
||
Comment 15•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/cc59256f5ef0
https://hg.mozilla.org/mozilla-central/rev/c5bd0893afc5
Updated•2 years ago
|
Description
•