+0
−4
+0
−145
Loading
Bug 1543267 Part 1 - Make 'stretch' fallback to 'flex-start' for flexbox's abspos children. r=dholbert In Flexbox spec 4.1, Example 3 [1]: ... since the absolutely-positioned box is considered to be "fixed-size", a value of stretch is treated the same as flex-start. Also, per Alignment 3 spec [2]: The default fallback alignment for 'stretch' is 'flex-start'. Thus, when computing the alignment for flexbox's abspos children in CSSAlignmentForAbsPosChild(), we convert 'stretch' to 'flex-start', and let the subsequent logic convert 'flex-start' to either 'start' or 'end', because nsAbsoluteContainingBlock don't know how to deal with the flex-relative axis. This patch makes us behave the same as Google Chrome on the modified testcases. [1] https://drafts.csswg.org/css-flexbox/#abspos-items [2] https://drafts.csswg.org/css-align/#valdef-align-content-stretch Differential Revision: https://phabricator.services.mozilla.com/D134543