зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1656786 - Make <select> list have 'overflow:auto' by default to indicate its scrollable. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D85874
This commit is contained in:
Родитель
24b6995b46
Коммит
03f9403679
|
@ -15,6 +15,14 @@
|
|||
<input id="input" style="border: 10px solid green;"><br>
|
||||
<textarea id="textarea" style="border: 10px solid green;"></textarea><br>
|
||||
<select id="select"><option></option></select>
|
||||
<select id="list" size=4>
|
||||
<option>XXXXXXXXXX</option>
|
||||
<option>XXXXXXXXXX</option>
|
||||
<option>XXXXXXXXXX</option>
|
||||
<option>XXXXXXXXXX</option>
|
||||
<option>XXXXXXXXXX</option>
|
||||
<option>XXXXXXXXXX</option>
|
||||
</select>
|
||||
<script>
|
||||
|
||||
async function testControl(id) {
|
||||
|
@ -43,6 +51,7 @@
|
|||
await testControl("input");
|
||||
await testControl("textarea");
|
||||
await testControl("select");
|
||||
await testControl("list");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
|
|
|
@ -246,6 +246,7 @@ select {
|
|||
}
|
||||
|
||||
select:-moz-select-list-box {
|
||||
overflow: auto;
|
||||
background-color: -moz-Field;
|
||||
color: -moz-FieldText;
|
||||
vertical-align: text-bottom;
|
||||
|
|
Загрузка…
Ссылка в новой задаче