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

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

Issue 450623002: Styling option should not override option:checked UA style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added to isSkippableComponentForInvalidation Created 6 years, 4 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
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/html.css
diff --git a/Source/core/css/html.css b/Source/core/css/html.css
index b1ad9ac08e36a6200c371329432854a6b2ad9f7e..91f074ae229dbd1db260468988f494bdaef87e3d 100644
--- a/Source/core/css/html.css
+++ b/Source/core/css/html.css
@@ -757,9 +757,7 @@ select {
cursor: default;
}
-select[size],
-select[multiple],
-select[size][multiple] {
+select:-internal-list-box {
-webkit-appearance: listbox;
align-items: flex-start;
border: 1px inset gray;
@@ -771,21 +769,6 @@ select[size][multiple] {
white-space: nowrap;
}
-select[size="0"],
-select[size="1"] {
- -webkit-appearance: menulist;
- align-items: center;
- 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;
@@ -799,38 +782,21 @@ option {
min-height: 1.2em;
}
-select:focus[size] option:checked,
-select:focus[multiple] option:checked,
-select:focus[size][multiple] option:checked {
- background-color: -internal-active-list-box-selection;
- color: -internal-active-list-box-selection-text;
+select:-internal-list-box:focus option:checked {
+ background-color: -internal-active-list-box-selection !important;
+ color: -internal-active-list-box-selection-text !important;
}
-select[size] option:checked,
-select[multiple] option:checked,
-select[size][multiple] option:checked {
- background-color: -internal-inactive-list-box-selection;
- color: -internal-inactive-list-box-selection-text;
+select:-internal-list-box option:checked {
+ background-color: -internal-inactive-list-box-selection !important;
+ color: -internal-inactive-list-box-selection-text !important;
}
-select[size="0"] option:checked,
-select[size="1"] option:checked,
-select:focus[size="0"] option:checked,
-select:focus[size="1"] option:checked {
- background-color: initial;
- color: initial;
+select:-internal-list-box:disabled option:checked,
+select:-internal-list-box option:checked:disabled {
+ color: gray !important;
}
-select:disabled option:checked,
-select:disabled[size] option:checked,
-select:disabled[multiple] option:checked,
-select:disabled[size][multiple] option:checked,
-option:checked:disabled,
-select[size] option:checked:disabled,
-select[multiple] option:checked:disabled,
-select[size][multiple] option:checked:disabled {
- color: gray;
-}
output {
display: inline;
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698