Index: Source/core/css/html.css |
diff --git a/Source/core/css/html.css b/Source/core/css/html.css |
index 52aa586e5c825eb672f4220250d0626cab292881..ba1788b7559e3d4406de2010f00962666b0bffb5 100644 |
--- a/Source/core/css/html.css |
+++ b/Source/core/css/html.css |
@@ -865,31 +865,53 @@ select { |
cursor: default; |
} |
-select[size], |
-select[multiple], |
-select[size][multiple] { |
+select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]) { |
-webkit-appearance: listbox; |
align-items: flex-start; |
border: 1px inset gray; |
border-radius: initial; |
white-space: initial; |
-} |
- |
-select[size="0"], |
-select[size="1"] { |
- -webkit-appearance: menulist; |
- align-items: center; |
- border: 1px solid; |
- border-radius: 5px; |
- white-space: pre; |
+ overflow-x: hidden; |
+ overflow-y: scroll; |
+ vertical-align: text-bottom; |
+ -webkit-user-select: none; |
+ white-space: nowrap; |
} |
optgroup { |
font-weight: bolder; |
+ display: block; |
} |
option { |
font-weight: normal; |
+ display: block; |
+ padding-top: 0; |
+ padding-bottom: 1px; |
+ -webkit-padding-start: 3px; |
+ -webkit-padding-end: 2px; |
+ white-space: pre; |
+ min-height: 13px; |
+} |
+ |
+/*optgroup option { |
+ padding-left: calc(2px + 1.3em); |
+}*/ |
+ |
+select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]) option:checked { |
+ background-color: -internal-active-list-box-selection; |
+} |
+ |
+select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]):not(:disabled) option:checked:not(:disabled) { |
+ color: -internal-active-list-box-selection-text; |
+} |
+ |
+select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]):not(:focus) option:checked { |
+ background-color: -internal-inactive-list-box-selection; |
+} |
+ |
+select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]):not(:focus):not(:disabled) option:checked:not(:disabled) { |
+ color: -internal-inactive-list-box-selection-text; |
} |
output { |