Commit 21fca649 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

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

This is a reland of c0d846b5

Differences from the original CL:
 * The original CL had a wrong expectation file for Win7 because of
   win7-blink-rel bot outage.  This CL removed it because 'Win'
   expectation is enough.

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}

Bug: 1139629
Change-Id: I9969d7263873ddf08ddcb45b3e1566e75e042924
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng_disabled
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2532478
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#826539}
parent 5c979b9b
......@@ -567,7 +567,7 @@ input[type="hidden" i], input[type="image" i], input[type="file" i] {
input[type="file" i] {
align-items: baseline;
color: inherit;
overflow: hidden;
overflow: hidden !important;
text-align: start !important;
text-overflow: ellipsis;
white-space: pre;
......
......@@ -71,4 +71,15 @@ Styling ::-webkit-file-upload-button:
<input type=file class="button-shadow">
<div>
<div>
<style>
.overflow {
overflow: visible;
width: 10px;
}
</style>
'overflow: visible' should not work:
<input type=file class=overflow>
</div>
</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