Skip to content

[css-text] Incorrect text-transform capitalize behavior for Catalan geminate Ls #8987

Closed
@zipus

Description

@zipus

I've noticed an issue with the text-transform:capitalize property in CSS when used on words containing "l·l" in Catalan (see Interpunct - Catalan). When this rule is applied to such words, the CSS interpreter incorrectly treats the interpunct as a word boundary and capitalizes the letter after it.

To illustrate, consider the word "cancel·lar". When text-transform:capitalize is applied, it currently results in "Cancel·Lar". However, according to Catalan language rules, it should be "Cancel·lar" instead. The interpunct is not considered a word boundary, and the second 'l' should not be capitalized.

I propose updating the algorithm used for text-transform:capitalize to respect language-specific case mapping rules such as this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed Rejected as OutOfScopeTestedMemory aid - issue has WPT testscss-text-3Current Workcss-text-4i18n-eurlreqEuropean language enablementi18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions