Reland "input[type=file]: display:inline-flex/flex/inline-grid/grid
should not affect the internal layout" In LayoutNG, we use LayoutNGBlockFlow for input[type=file]. If flex/grid is specified, NGBlockLayoutAlgorithm is applied but children are blockified. So the internal [Choose File] button and "No file chosen" text were placed on different lines. This CL fixes it by skipping children blockify if the parent box is input[type=file]. The original approach was wrong because it exposed adjusted 'display' value via getComputedStyle(). Original change's description: > input[type=file]: display:inline-flex/flex/inline-grid/grid should > not affect the internal layout > > In LayoutNG, we use LayoutNGBlockFlow for input[type=file]. If > flex/grid is specified, NGBlockLayoutAlgorithm is applied but children > are blockified. So the internal [Choose File] button and > "No file chosen" text were placed on different lines. > > This CL fixes it by adding "display" adjustment code. > > Bug: 1119312 > Change-Id: Id15bfa5a047f56ee00adb43d74e6b3d09f1f6433 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2371066 > Reviewed-by: Koji Ishii <kojii@chromium.org> > Commit-Queue: Kent Tamura <tkent@chromium.org> > Cr-Commit-Position: refs/heads/master@{#801209} Bug: 1119312 Change-Id: I1df3580882dff125d1860dab9754d6707d4eedc4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2371727 Auto-Submit: Kent Tamura <tkent@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#801281}
Showing
Please register or sign in to comment