Bug 252490

Summary: ch unit is not resolved properly when writing direction is vertical
Product: WebKit Reporter: zalan <zalan>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, bfulgham, karlcow, mmaxfield, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
test case
none
(similar) test case none

Description zalan 2023-02-17 10:09:15 PST
Created attachment 465057 [details]
test case

need to flip glyph height -> glyph width
Comment 1 Ahmad Saleem 2023-02-17 10:14:59 PST
For some strange reason - this test case on iOS 16.3.1 using iPhone 13 Pro Max works differently compared to macOS and does not show "Red" or "Green" but "Blue".
Comment 2 zalan 2023-02-17 10:28:37 PST
Created attachment 465058 [details]
(similar) test case
Comment 3 zalan 2023-02-17 10:29:09 PST
(In reply to Ahmad Saleem from comment #1)
> For some strange reason - this test case on iOS 16.3.1 using iPhone 13 Pro
> Max works differently compared to macOS and does not show "Red" or "Green"
> but "Blue".
that's certainly odd. what do you see with the second test case?
Comment 4 Ahmad Saleem 2023-02-17 10:30:35 PST
(In reply to zalan from comment #3)
> (In reply to Ahmad Saleem from comment #1)
> > For some strange reason - this test case on iOS 16.3.1 using iPhone 13 Pro
> > Max works differently compared to macOS and does not show "Red" or "Green"
> > but "Blue".
> that's certainly odd. what do you see with the second test case?

Same blue text and I am using it in Private Mode (tab). :-(
Comment 5 zalan 2023-02-17 10:35:48 PST
(In reply to Ahmad Saleem from comment #4)
> (In reply to zalan from comment #3)
> > (In reply to Ahmad Saleem from comment #1)
> > > For some strange reason - this test case on iOS 16.3.1 using iPhone 13 Pro
> > > Max works differently compared to macOS and does not show "Red" or "Green"
> > > but "Blue".
> > that's certainly odd. what do you see with the second test case?
> 
> Same blue text and I am using it in Private Mode (tab). :-(
do you see only 0s or 1s too?
Comment 6 Ahmad Saleem 2023-02-17 10:36:58 PST
(In reply to zalan from comment #5)
> (In reply to Ahmad Saleem from comment #4)
> > (In reply to zalan from comment #3)
> > > (In reply to Ahmad Saleem from comment #1)
> > > > For some strange reason - this test case on iOS 16.3.1 using iPhone 13 Pro
> > > > Max works differently compared to macOS and does not show "Red" or "Green"
> > > > but "Blue".
> > > that's certainly odd. what do you see with the second test case?
> > 
> > Same blue text and I am using it in Private Mode (tab). :-(
> do you see only 0s or 1s too?

Yes - I see them 000111 in blue text.

I see them in both cases but in blue compared to macOS, where it is green / red.
Comment 7 zalan 2023-02-17 16:56:08 PST
apparently widthForGlyph(zeroGlyph) always returns 16px when platformData().orientation() != FontOrientation::Horizontal
(and we size the block incorrectly)
Comment 8 Radar WebKit Bug Importer 2023-02-24 10:10:21 PST
<rdar://problem/105889789>