mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
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:
parent
d0e0b80805
commit
92a98432ec
@ -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 */
|
||||
|
@ -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;
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user