layout: Add initial support for text-transform (#31396)

This adds basic support for `text-transform` in a way that is more
complete than legacy layout. There are still many missing elements of
proper `text-transform` support such as:

1. Support for `full-width` and `full-size-kana`
2. Support for grapheme based uppercasing, lowercasing, and
   capitalization. These are all done per-code point right now.
3. Support for the language-specific `SpecialCasing.txt` cases for case
   mapping such as the ones for Irish and Turkish.

Co-authored-by: Rakhi Sharma <atbrakhi@igalia.com>
This commit is contained in:
Martin Robinson 2024-02-22 15:15:59 +01:00 committed by GitHub
parent f60e5e767b
commit d8b326528b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
105 changed files with 181 additions and 292 deletions

View file

@ -1,30 +1,3 @@
[text-transform-computed.html]
[Property text-transform value 'none']
expected: FAIL
[Property text-transform value 'capitalize']
expected: FAIL
[Property text-transform value 'uppercase']
expected: FAIL
[Property text-transform value 'lowercase']
expected: FAIL
[Property text-transform value 'full-width']
expected: FAIL
[Property text-transform value 'full-size-kana']
expected: FAIL
[Property text-transform value 'capitalize full-width']
expected: FAIL
[Property text-transform value 'full-width full-size-kana']
expected: FAIL
[Property text-transform value 'uppercase full-width full-size-kana']
expected: FAIL
[Property text-transform value 'math-auto']
expected: FAIL