[LayoutNG] Block-size % resolution inside columns.
We were resolving the block-size of column content against the columns, but that's only correct if the column happens to take up all the space in a multicol container (which typically ISN'T the case when there are column spanners, or when a lone column row is balanced to use less space than what's specified on the multicol container). So, resolve percentage block-size against the computed content-box block-size of the multicol container (not the columns). Also provide the correct percentage resolution size in the initial column balancing pass. This doesn't really do much for correctness, since the column stretching machinery will eventually give us the right column size, but this will hopefully give a better initial size guess, so that we don't have to stretch and re-lay out as many times as we would have without this change. Some work left to do (TODO added) for OOF descendants. No intended behavior changes there for now. Bug: 829028 Change-Id: Iddc5b1f53ca375a05768385bab35ce2215c2ccbc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2412728Reviewed-by:Alison Maher <almaher@microsoft.com> Reviewed-by:
Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#807365}
Showing
Please register or sign in to comment