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

Side by Side Diff: Source/WebCore/css/html.css

Issue 14096013: Implement select element list box with shadow DOM. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@shadowselect
Patch Set: Created 7 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * The default style sheet used to render HTML. 2 * The default style sheet used to render HTML.
3 * 3 *
4 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 box-sizing: border-box; 930 box-sizing: border-box;
931 -webkit-align-items: center; 931 -webkit-align-items: center;
932 border: 1px solid; 932 border: 1px solid;
933 white-space: pre; 933 white-space: pre;
934 -webkit-rtl-ordering: logical; 934 -webkit-rtl-ordering: logical;
935 color: black; 935 color: black;
936 background-color: white; 936 background-color: white;
937 cursor: default; 937 cursor: default;
938 } 938 }
939 939
940 select[size], 940 select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]) {
941 select[multiple], 941 -webkit-appearance: none;
942 select[size][multiple] {
943 -webkit-appearance: listbox;
944 -webkit-align-items: flex-start; 942 -webkit-align-items: flex-start;
945 border: 1px inset gray; 943 border: 1px inset gray;
946 border-radius: initial; 944 border-radius: initial;
947 white-space: initial; 945 white-space: initial;
948 } 946 overflow-x: hidden;
949 947 overflow-y: scroll;
950 select[size="0"], 948 vertical-align: text-bottom;
951 select[size="1"] { 949 -webkit-user-select: none;
952 -webkit-appearance: menulist; 950 white-space: nowrap;
953 -webkit-align-items: center;
954 border: 1px solid;
955 border-radius: 5px;
956 white-space: pre;
957 } 951 }
958 952
959 optgroup { 953 optgroup {
960 font-weight: bolder; 954 font-weight: bolder;
955 display: block;
961 } 956 }
962 957
963 option { 958 option {
964 font-weight: normal; 959 font-weight: normal;
960 display: block;
961 padding: 0 2px 1px 2px;
962 }
963
964 optgroup option {
965 padding-left: calc(2px + 1.3em);
966 }
967
968 select option:checked {
969 background-color: activelistboxselection;
970 }
971
972 select:not(:disabled) option:checked:not(:disabled) {
973 color: activelistboxselectiontext;
974 }
975
976 select:not(:focus) option:checked {
977 background-color: inactivelistboxselection;
978 }
979
980 select:not(:focus):not(:disabled) option:checked:not(:disabled) {
981 color: inactivelistboxselectiontext;
965 } 982 }
966 983
967 output { 984 output {
968 display: inline; 985 display: inline;
969 } 986 }
970 987
971 /* form validation message bubble */ 988 /* form validation message bubble */
972 989
973 ::-webkit-validation-bubble { 990 ::-webkit-validation-bubble {
974 display: inline-block; 991 display: inline-block;
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 @page { 1310 @page {
1294 /* FIXME: Define the right default values for page properties. */ 1311 /* FIXME: Define the right default values for page properties. */
1295 size: auto; 1312 size: auto;
1296 margin: auto; 1313 margin: auto;
1297 padding: 0px; 1314 padding: 0px;
1298 border-width: 0px; 1315 border-width: 0px;
1299 } 1316 }
1300 1317
1301 /* noscript is handled internally, as it depends on settings. */ 1318 /* noscript is handled internally, as it depends on settings. */
1302 1319
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698