Closed Bug 329069 Opened 19 years ago Closed 17 years ago

:first-letter should include grapheme clusters

Categories

(Core :: Layout: Block and Inline, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dbaron, Unassigned)

References

(Depends on 2 open bugs)

Details

Attachments

(1 file)

(deleted), text/html; charset=UTF-8
Details
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.
Attached file examples (deleted) —
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.)
Depends on: 332741
Fixed by new textframe.
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: