[LayoutNG] Fixes OOF min/max sizes for nodes w/ %-dependent children.
Previously we just passed in the containing block size, however this was incorrect for the following case: <div style="position: relative; height: 200px;"> <div style="position: absolute; top: 0; bottom: 100px;"> <canvas width=1 height=1 style="height: 100%;"></canvas> </div> </div> This pre-calculates the block-size of the OOF-positioned element, and pass it into the NGBlockNode::MinMaxSizes pass. Change-Id: I897dc6f9c157bfa1ae63f9821cdb6ed03a218322 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2122854 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:Aleks Totic <atotic@chromium.org> Reviewed-by:
Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#754763}
Showing
Please register or sign in to comment