Make <select size="0"> act like <select size="1">, and some tweaks to make

<select size="1" multiple> work better.  Bug 182681, patch idea from
the_great_spam_bin@yahoo.com (Ari), r=bryner, sr=dbaron
This commit is contained in:
bzbarsky%mit.edu 2003-09-25 05:44:51 +00:00
parent d0e0b80805
commit 92a98432ec
3 changed files with 23 additions and 11 deletions

View File

@ -145,12 +145,19 @@ select {
-moz-border-radius: 0 !important;
}
select[size] {
/* Need the "select[size][multiple]" selector to override the settings on
'select[size="1"]', eg if one has <select size="1" multiple> */
select[size],
select[multiple],
select[size][multiple] {
/* Different alignment and padding for listbox vs combobox */
vertical-align: text-bottom;
padding: 1px 0 1px 0;
-moz-appearance: listbox;
}
select[size="0"],
select[size="1"] {
/* Except this is not a listbox */
vertical-align: baseline;
@ -175,10 +182,6 @@ select > input[type="button"]:active {
background-image: url("arrowd.gif") !important;
}
select[size] {
-moz-appearance: listbox;
}
select::-moz-dummy-option {
visibility: hidden;
content: "XX"; /* demo 8, edge case test 1 */

View File

@ -52,12 +52,18 @@ select {
font-size: 11px;
}
select[size] {
/* Need the "select[size][multiple]" selector to override the settings on
'select[size="1"]', eg if one has <select size="1" multiple> */
select[size],
select[multiple],
select[size][multiple] {
-moz-appearance: listbox;
margin: 0px;
background-color: -moz-Field !important;
}
select[size="0"],
select[size="1"] {
-moz-appearance: menulist;
margin: 1px;

View File

@ -145,12 +145,19 @@ select {
-moz-border-radius: 0 !important;
}
select[size] {
/* Need the "select[size][multiple]" selector to override the settings on
'select[size="1"]', eg if one has <select size="1" multiple> */
select[size],
select[multiple],
select[size][multiple] {
/* Different alignment and padding for listbox vs combobox */
vertical-align: text-bottom;
padding: 1px 0 1px 0;
-moz-appearance: listbox;
}
select[size="0"],
select[size="1"] {
/* Except this is not a listbox */
vertical-align: baseline;
@ -175,10 +182,6 @@ select > input[type="button"]:active {
background-image: url("arrowd.gif") !important;
}
select[size] {
-moz-appearance: listbox;
}
select::-moz-dummy-option {
visibility: hidden;
content: "XX"; /* demo 8, edge case test 1 */