Commit 810f4612 authored by Morten Stenshorne's avatar Morten Stenshorne Committed by Commit Bot

Revert "input[type=file]: Ignore the 'overflow' property"

This reverts commit c0d846b5.

Reason for revert: https://ci.chromium.org/p/chromium/builders/ci/Win7%20Tests%20%281%29/110118

Original change's description:
> input[type=file]: Ignore the 'overflow' property
>
> For a historical reason, some form controls always clip the content,
> and should ignore the 'overflow' property. File upload control NG had
> a regression that it accepts overflow:visible.  This CL disables it
> again. The new behavior is compatible with Safari and Firefox.
>
> Bug: 1139629
> Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng_disabled
> Change-Id: I6b0b5a715a2c859f195bbf2473ead67cd22bd14d
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2528812
> Reviewed-by: Koji Ishii <kojii@chromium.org>
> Commit-Queue: Kent Tamura <tkent@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#825813}

TBR=yosin@chromium.org,tkent@chromium.org,kojii@chromium.org

Change-Id: I805124707d070cb15348453107884d58ca5998a3
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1139629
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng_disabled
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2531998Reviewed-by: default avatarMorten Stenshorne <mstensho@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#826241}
parent 27037001
...@@ -567,7 +567,7 @@ input[type="hidden" i], input[type="image" i], input[type="file" i] { ...@@ -567,7 +567,7 @@ input[type="hidden" i], input[type="image" i], input[type="file" i] {
input[type="file" i] { input[type="file" i] {
align-items: baseline; align-items: baseline;
color: inherit; color: inherit;
overflow: hidden !important; overflow: hidden;
text-align: start !important; text-align: start !important;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: pre; white-space: pre;
......
...@@ -71,15 +71,4 @@ Styling ::-webkit-file-upload-button: ...@@ -71,15 +71,4 @@ Styling ::-webkit-file-upload-button:
<input type=file class="button-shadow"> <input type=file class="button-shadow">
<div> <div>
<div>
<style>
.overflow {
overflow: visible;
width: 10px;
}
</style>
'overflow: visible' should not work:
<input type=file class=overflow>
</div>
</body> </body>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment