Bug 117444

Summary: Correctly handle auto margins for flipped writing modes
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, dino, hyatt
Priority: P2 Keywords: BlinkMergeCandidate
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Ryosuke Niwa
Reported 2013-06-10 16:44:59 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/882b259b17c19f10e9a7b36bf9ca54a399b5f416 Correctly handle auto margins for flipped writing modes Handling of auto margins for flipped writing modes (vertical-rl and horizontal-bt) was broken. We need to adjust the position if margin-before is auto, and for them, that's bottom/right, not top/left. This was found by noticing unexpected alignment in flex-flow-auto-margins.html. I am not sure why flex-align-vertical-writing-mode.html had the expectations it had, as far as I can tell, they were just wrong.
Attachments
Ahmad Saleem
Comment 1 2022-09-04 12:28:08 PDT
https://github.com/WebKit/WebKit/blob/61a1009d68c4718583337288956333b630f6e904/Source/WebCore/rendering/RenderFlexibleBox.cpp#L1299 It is already done and I don't think this is required anymore. Changing status to "RESOLVED CONFIGURATION CHANGED". Thanks!
Note You need to log in before you can comment on or make changes to this bug.