:first-letter should include grapheme clusters

RESOLVED FIXED

Status

()

Core
Layout: Block and Inline
RESOLVED FIXED
13 years ago
8 years ago

People

(Reporter: dbaron, Unassigned)

Tracking

(Depends on: 2 bugs)

Trunk
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

The code to fix this is the same area as that to fix bug 23605 / bug 45091 / bug 328111, but it's not the same bug.

:first-letter should include grapheme clusters when combining characters are used.  Examples to follow.
Note that these examples don't include any that wouldn't be solved by NFC / KNFC normalization, but such examples exist.
See http://www.unicode.org/reports/tr29/ for the definition of grapheme cluster; we probably should have a general mechanism for grapheme cluster iteration since it's very useful for editing.  (And such an iterator could be a superset of dealing with surrogates.)
Fixed by new textframe.
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Flags: in-testsuite?
Resolution: --- → FIXED

Updated

11 years ago
Flags: in-testsuite? → in-testsuite+
Depends on: 614468
The 329069-1.html reftest now passes even on Linux.
http://hg.mozilla.org/mozilla-central/rev/8ed68afab41d

Correcting the styles in 329069-2 makes it pass on Linux (only).
http://hg.mozilla.org/mozilla-central/rev/7b49ee09259b
Depends on: 553981
Yes, it would be good to check in those testcases as reftests.
Depends on: 603710
Depends on: 615445
Depends on: 617869
Depends on: 618870
You need to log in before you can comment on or make changes to this bug.