Revert "input[type=file]: display:inline-flex/flex/inline-grid/grid should not...
Revert "input[type=file]: display:inline-flex/flex/inline-grid/grid should not affect the internal layout" This reverts commit d04cef4c. Reason for revert: Specification violation. Changing ComputedStyle:: Display() affects web-exposed 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} TBR=yosin@chromium.org,tkent@chromium.org,kojii@chromium.org Change-Id: I393b32565e44ea8dbfce2eb6c347d5b423470764 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 1119312 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2371847Reviewed-by:Kent Tamura <tkent@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#801238}
Showing
Please register or sign in to comment