NEW 117436
Correctly calculate auto margins for column flows
https://bugs.webkit.org/show_bug.cgi?id=117436
Summary Correctly calculate auto margins for column flows
Ryosuke Niwa
Reported 2013-06-10 16:07:48 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/4727602ff32037dede84f2acd9534d6256f3e001 In RenderBox::computeInlineDirectionMargins, we have to pretend that auto margins are zero so that the line cross size gets calculated correctly (compare http://dev.w3.org/csswg/css-flexbox/#auto-margins) That fix exposed a bug in RenderFlexibleBox::updateAutoMarginsInCrossAxis, which needs to take LTR/RTL-ness into account -- it needs to adjust the position iff margin-before is auto, which can be margin-right. This CL also adds a few comments in an attempt to clarify the code a little.
Attachments
Ahmad Saleem
Comment 1 2022-08-26 14:39:19 PDT
I am able to reproduce this issue kind of based on linked Chromium patch: Link - https://jsfiddle.net/abgLcdpq/show *** Safari Technology Preview 152 *** Shows "only four" - centeredWithAlignSelf *** Chrome Canary 107 *** Shows "five" - centeredWithAlignSelf *** Firefox Nightly 106 *** Shows "five" - centeredWithAlignSelf _____________________________ Just wanted to share updated results. Thanks!
Radar WebKit Bug Importer
Comment 3 2022-08-30 12:12:08 PDT
Note You need to log in before you can comment on or make changes to this bug.