Closed Bug 2094563 Opened 4 days ago Closed 4 days ago

text-transform: full-width only applies to the last character of an expanded case mapping (ß → SS)

Categories

(Core :: Layout: Text and Fonts, defect)

defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(1 external file)

When text-transform: full-width is combined with a case transform that expands one character into several (for example ß → SS for uppercase or ß → Ss for capitalize), only the last character of the expansion is converted to its full-width form.

Testcase:

<div style="text-transform: full-width uppercase">ß</div>

Expected (per CSS Text 3, both transforms apply to the whole result): U+FF33 U+FF33

Actual: U+0053 U+FF33

This was noticed while diagnosing bug 2093691: the mixed S + s output from full-width capitalize on ß is what led to a font change inside a merge group there.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ec03ce1a84de https://hg.mozilla.org/integration/autoland/rev/4e5847ba4e9e Apply full-width transform to all characters of an expanded case mapping. r=layout-reviewers,jwatt
Status: ASSIGNED → RESOLVED
Closed: 4 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/65385 for changes under testing/web-platform/tests

Upstream PR merged by moz-wptsync-bot

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: