• Kent Tamura's avatar
    Fieldset NG: the content box should be able to be an OOF container · b6f45d9d
    Kent Tamura authored
    OOF descendants of a fieldset should not be contained by the fieldset
    because they should be scrolled together with the fieldset contents.
    This CL makes an anonymous fieldset content box an OOF container by
    adding |filter: brightness(100%)| or |position: relative| if the
    fieldset can contain OOF objects.
    
    We need to add a special handling for OOF descendants of a LEGEND to
    FindAncestorByPredicate() because such OOF descendants are contained
    by fieldsets in NG fragment trees.  Without this change, we had some
    CHECK failures.
    
    Bug: 1153042
    Change-Id: I993922cfd373a9e0558bc50edb009680f0f1244a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2569140Reviewed-by: default avatarMorten Stenshorne <mstensho@chromium.org>
    Commit-Queue: Kent Tamura <tkent@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#834169}
    b6f45d9d
disable-layout-ng 55.3 KB