Bug 264425

Summary: [IFC] inline-block child preceded by an inline child has incorrect positioning in vertical writing modes with a right-to-left direction
Product: WebKit Reporter: Aditya Keerthi <akeerthi>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Reduction
none
Screenshot
none
longer content-more offset screenshot
none
[fast-cq]Patch none

Description Aditya Keerthi 2023-11-08 10:50:02 PST
Created attachment 468518 [details]
Reduction

See test case and screenshot.
Comment 1 Radar WebKit Bug Importer 2023-11-08 10:50:18 PST
<rdar://problem/118128181>
Comment 2 Aditya Keerthi 2023-11-08 10:50:23 PST
Created attachment 468519 [details]
Screenshot
Comment 3 zalan 2023-11-08 11:11:36 PST
This is some offset gone wrong in bidi codepath. The longer the visually first content (1, 55555 etc) is, the more offset the visually trailing content (X) gains. 

<div style="outline: 1px solid green; writing-mode: vertical-rl; direction: rtl; margin-left: 100px;"><div style="display: inline-block;">X</div><span></span>1</div>
<div style="outline: 1px solid green; writing-mode: vertical-rl; direction: rtl; margin-left: 100px;"><div style="display: inline-block;">X</div><span></span>55555</div>
<div style="outline: 1px solid green; writing-mode: vertical-rl; direction: rtl; margin-left: 100px;"><div style="display: inline-block;">X</div><span></span>999999999</div>
Comment 4 zalan 2023-11-08 11:12:15 PST
Created attachment 468520 [details]
longer content-more offset screenshot
Comment 5 zalan 2023-11-08 20:22:28 PST
Created attachment 468528 [details]
[fast-cq]Patch
Comment 6 EWS 2023-11-09 05:32:05 PST
Committed 270442@main (1a7f8f48b4c1): <https://commits.webkit.org/270442@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 468528 [details].