Bug 252490 - ch unit is not resolved properly when writing direction is vertical
Summary: ch unit is not resolved properly when writing direction is vertical
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-17 10:09 PST by zalan
Modified: 2023-03-01 14:06 PST (History)
7 users (show)

See Also:


Attachments
test case (203 bytes, text/html)
2023-02-17 10:09 PST, zalan
no flags Details
(similar) test case (201 bytes, text/html)
2023-02-17 10:28 PST, zalan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>