• Morten Stenshorne's avatar
    [LayoutNG] Break before a float if breaking inside isn't ideal. · 4033215b
    Morten Stenshorne authored
    We currently don't let a break before a float affect the appeal of
    breaking inside their container. This is possible and fairly straight-forward
    to implement, at least for floats that don't participate in an inline
    formatting context.
    
    Also, since we're not hooking the floats up to the break appeal system
    at all yet, we won't see class A breakpoints between floats, or between
    a float and an in-flow block, which the spec actually requires.
    
    Will get back to this when inline formatting context float fragmentation is
    supported. Being as consistent as possible regardless of a float belonging to
    an inline formatting context or not seems like a good idea. Let's figure out
    what's feasible for inline formatting context floats first.
    
    Bug: 829028
    Change-Id: Iccb22d91865ca6aad464c2ee12462843281643a9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1929825Reviewed-by: default avatarIan Kilpatrick <ikilpatrick@chromium.org>
    Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#718590}
    4033215b
TestExpectations 519 KB