Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(567)

Unified Diff: Source/core/css/html.css

Issue 347773002: Implement select listbox using shadow DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/css/html.css
diff --git a/Source/core/css/html.css b/Source/core/css/html.css
index 68f50e7c19d3581ecc3b1edf7fd52b554e607c6c..8eda75163512f0b193f72b5c7212f8aeb867b78e 100644
--- a/Source/core/css/html.css
+++ b/Source/core/css/html.css
@@ -759,24 +759,57 @@ select[size][multiple] {
align-items: flex-start;
border: 1px inset gray;
border-radius: initial;
- white-space: initial;
+ overflow-x: hidden;
+ overflow-y: scroll;
+ vertical-align: text-bottom;
+ -webkit-user-select: none;
+ white-space: nowrap;
}
select[size="0"],
select[size="1"] {
-webkit-appearance: menulist;
align-items: center;
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
+ border-color: initial;
border-radius: 5px;
+ overflow-x: initial;
+ overflow-y: initial;
+ vertical-align: initial;
+ -webkit-user-select: initial;
white-space: pre;
}
optgroup {
font-weight: bolder;
+ display: block;
}
option {
font-weight: normal;
+ display: block;
+ padding: 0 2px 1px 2px;
+ white-space: pre;
+}
+
+option:checked {
+ background-color: -internal-inactive-list-box-selection;
+ color: -internal-inactive-list-box-selection-text;
+}
+
+select:focus option:checked {
+ background-color: -internal-active-list-box-selection;
+ color: -internal-active-list-box-selection-text;
+}
+
+select:disabled option:checked,
+option:checked:disabled {
+ color: gray;
+}
+
+optgroup::-webkit-optgroup-label {
+ padding: 0 2px 1px 2px;
}
output {

Powered by Google App Engine
This is Rietveld 408576698