Bug 1457628 - Remove broken rule for the file input button. r=jfkthame

Inheriting block-size is just plain wrong in presence of calc or percentages.

The layout without these rules also matches other browsers, so I see no reason
not to do this.

Differential Revision: https://phabricator.services.mozilla.com/D37746

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2019-07-12 10:10:43 +00:00
Родитель cf2048abd6
Коммит b2494dc0fa
4 изменённых файлов: 13 добавлений и 1 удалений

Просмотреть файл

@ -0,0 +1,6 @@
<!doctype html>
<style>
/* Android adds a border for some reason */
input { border: 0 }
</style>
<input type="file">

Просмотреть файл

@ -0,0 +1,6 @@
<!doctype html>
<style>
/* Android adds a border for some reason */
input { border: 0 }
</style>
<input type="file" style="height: 400px">

Просмотреть файл

@ -9,3 +9,4 @@ fuzzy-if(Android,0-2,0-2) fuzzy-if(OSX,0-34,0-134) fails-if(webrender&&!(cocoaWi
== label-min-inline-size.html label-min-inline-size-ref.html
== css-overflow.html css-overflow-ref.html
== css-display.html css-display-ref.html
== button-height.html button-height-ref.html

Просмотреть файл

@ -504,7 +504,6 @@ input[type="file"] > label {
/* button part of file selector */
input[type="file"] > button {
block-size: inherit;
font-size: unset;
letter-spacing: unset;
cursor: unset;