Bug 220536 - Multi-codepoint CJK grapheme clusters are not oriented correctly in vertical writing mode
Summary: Multi-codepoint CJK grapheme clusters are not oriented correctly in vertical ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-01-12 01:01 PST by Myles C. Maxfield
Modified: 2021-01-15 18:50 PST (History)
3 users (show)

See Also:


Attachments
Patch (4.63 KB, patch)
2021-01-12 01:03 PST, Myles C. Maxfield
zalan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2021-01-12 01:01:05 PST
Multi-codepoint CJK grapheme clusters are not oriented correctly in vertical writing mode
Comment 1 Myles C. Maxfield 2021-01-12 01:03:01 PST
Created attachment 417438 [details]
Patch
Comment 2 Myles C. Maxfield 2021-01-12 01:03:04 PST
<rdar://problem/70633887>
Comment 3 Myles C. Maxfield 2021-01-12 14:58:04 PST
Investigating the Windows failure now.
Comment 4 Myles C. Maxfield 2021-01-12 16:55:14 PST
Committed r271425: <https://trac.webkit.org/changeset/271425>
Comment 5 Lauro Moura 2021-01-15 08:27:51 PST
GTK/WPE renders the glyph correctly but with a slightly different positioning, ditto for Firefox 85 and Chromium 87. The same occurs for single codepoints.

Does the spec require them to to be layout exactly the same (i.e. single grapheme in vertical and horizontal modes) or it's something open and the test could be tweaked to work in GTK/WPE?
Comment 6 Myles C. Maxfield 2021-01-15 10:20:36 PST
(In reply to Lauro Moura from comment #5)
> GTK/WPE renders the glyph correctly but with a slightly different
> positioning, ditto for Firefox 85 and Chromium 87. The same occurs for
> single codepoints.
> 
> Does the spec require them to to be layout exactly the same (i.e. single
> grapheme in vertical and horizontal modes) or it's something open and the
> test could be tweaked to work in GTK/WPE?

They don’t *have* to be exactly the same. However, the em box is usually a perfect square, so it would be good to at least determine where the offset comes from in GTK/WPE. One would expect that rotating a perfect square by 90deg would lead to an identical rendering.
Comment 7 Lauro Moura 2021-01-15 18:50:19 PST
(In reply to Myles C. Maxfield from comment #6)
> (In reply to Lauro Moura from comment #5)
> > GTK/WPE renders the glyph correctly but with a slightly different
> > positioning, ditto for Firefox 85 and Chromium 87. The same occurs for
> > single codepoints.
> > 
> > Does the spec require them to to be layout exactly the same (i.e. single
> > grapheme in vertical and horizontal modes) or it's something open and the
> > test could be tweaked to work in GTK/WPE?
> 
> They don’t *have* to be exactly the same. However, the em box is usually a
> perfect square, so it would be good to at least determine where the offset
> comes from in GTK/WPE. One would expect that rotating a perfect square by
> 90deg would lead to an identical rendering.

For GTK/WPE in this test the box seems to be slightly rectangular (111x100) and slightly offset (-6,0 and 0,-6, depending on the orientation). I've opened bug220680 to track it.