NEW 252490
ch unit is not resolved properly when writing direction is vertical
https://bugs.webkit.org/show_bug.cgi?id=252490
Summary ch unit is not resolved properly when writing direction is vertical
alan
Reported 2023-02-17 10:09:15 PST
Created attachment 465057 [details] test case need to flip glyph height -> glyph width
Attachments
test case (203 bytes, text/html)
2023-02-17 10:09 PST, alan
no flags
(similar) test case (201 bytes, text/html)
2023-02-17 10:28 PST, alan
no flags
Ahmad Saleem
Comment 1 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".
alan
Comment 2 2023-02-17 10:28:37 PST
Created attachment 465058 [details] (similar) test case
alan
Comment 3 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?
Ahmad Saleem
Comment 4 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). :-(
alan
Comment 5 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?
Ahmad Saleem
Comment 6 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.
alan
Comment 7 2023-02-17 16:56:08 PST
apparently widthForGlyph(zeroGlyph) always returns 16px when platformData().orientation() != FontOrientation::Horizontal (and we size the block incorrectly)
Radar WebKit Bug Importer
Comment 8 2023-02-24 10:10:21 PST
Note You need to log in before you can comment on or make changes to this bug.