[LayoutNG] Legend break inside avoid
If the legend sets break-inside to avoid, and we can break before the fieldset, we should do so if it is a more appealing break point. This, however, was not the case because the fieldset content, if empty, would get laid out and override the break appeal of the builder, which is why the fieldset did not know to break before. This change fixes this issue by avoiding laying out the fieldset content if we've run out of space from laying out the legend. Bug: 875235 Change-Id: I2db2554fb1032d8297c6df954d9d8f6194b041d9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2116834 Commit-Queue: Alison Maher <almaher@microsoft.com> Reviewed-by:Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#753279}
Showing
Please register or sign in to comment