• Morten Stenshorne's avatar
    Use the correct out-of-flow containing block in continuations. · 78ed3d53
    Morten Stenshorne authored
    We cannot just use the innermost inline, without checking if it's a
    valid containing block for absolutely positioned descendants. Find the
    right ancestor.
    
    The idea of using the *next* inline in the continuation chain may not be
    ideal, but it's not obvious that using the previous one would be much
    better (it's more work to find that one anyway), so leaving it as it is.
    The spec says that if the relatively positioned inline occurs on
    multiple lines, CSS 2 doesn't define exact behavior. Therefore, in the
    test, put the same amount of stuff on the line preceding the
    interrupting block-level element as on the line following it, to be sure
    that the abspos descendant is sized the way we want it to be.
    
    Bug: 897535
    Change-Id: Ie9bc4e83400bc283b9c95aafef821000f2303d12
    Reviewed-on: https://chromium-review.googlesource.com/c/1301457
    Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
    Reviewed-by: default avatarEmil A Eklund <eae@chromium.org>
    Reviewed-by: default avatarvmpstr <vmpstr@chromium.org>
    Reviewed-by: default avatarMason Freed <masonfreed@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#603466}
    78ed3d53
TestExpectations 535 KB