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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
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 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 box-sizing: border-box; 858 box-sizing: border-box;
859 align-items: center; 859 align-items: center;
860 border: 1px solid; 860 border: 1px solid;
861 white-space: pre; 861 white-space: pre;
862 -webkit-rtl-ordering: logical; 862 -webkit-rtl-ordering: logical;
863 color: black; 863 color: black;
864 background-color: white; 864 background-color: white;
865 cursor: default; 865 cursor: default;
866 } 866 }
867 867
868 select[size], 868 select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]) {
869 select[multiple],
870 select[size][multiple] {
871 -webkit-appearance: listbox; 869 -webkit-appearance: listbox;
872 align-items: flex-start; 870 align-items: flex-start;
873 border: 1px inset gray; 871 border: 1px inset gray;
874 border-radius: initial; 872 border-radius: initial;
875 white-space: initial; 873 white-space: initial;
876 } 874 overflow-x: hidden;
877 875 overflow-y: scroll;
878 select[size="0"], 876 vertical-align: text-bottom;
879 select[size="1"] { 877 -webkit-user-select: none;
880 -webkit-appearance: menulist; 878 white-space: nowrap;
881 align-items: center;
882 border: 1px solid;
883 border-radius: 5px;
884 white-space: pre;
885 } 879 }
886 880
887 optgroup { 881 optgroup {
888 font-weight: bolder; 882 font-weight: bolder;
883 display: block;
889 } 884 }
890 885
891 option { 886 option {
892 font-weight: normal; 887 font-weight: normal;
888 display: block;
889 padding-top: 0;
890 padding-bottom: 1px;
891 -webkit-padding-start: 3px;
892 -webkit-padding-end: 2px;
893 white-space: pre;
894 min-height: 13px;
895 }
896
897 /*optgroup option {
898 padding-left: calc(2px + 1.3em);
899 }*/
900
901 select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]) option:ch ecked {
902 background-color: -internal-active-list-box-selection;
903 }
904
905 select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]):not(:disa bled) option:checked:not(:disabled) {
906 color: -internal-active-list-box-selection-text;
907 }
908
909 select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]):not(:focu s) option:checked {
910 background-color: -internal-inactive-list-box-selection;
911 }
912
913 select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]):not(:focu s):not(:disabled) option:checked:not(:disabled) {
914 color: -internal-inactive-list-box-selection-text;
893 } 915 }
894 916
895 output { 917 output {
896 display: inline; 918 display: inline;
897 } 919 }
898 920
899 /* meter */ 921 /* meter */
900 922
901 meter { 923 meter {
902 -webkit-appearance: meter; 924 -webkit-appearance: meter;
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 @page { 1174 @page {
1153 /* FIXME: Define the right default values for page properties. */ 1175 /* FIXME: Define the right default values for page properties. */
1154 size: auto; 1176 size: auto;
1155 margin: auto; 1177 margin: auto;
1156 padding: 0px; 1178 padding: 0px;
1157 border-width: 0px; 1179 border-width: 0px;
1158 } 1180 }
1159 1181
1160 /* noscript is handled internally, as it depends on settings. */ 1182 /* noscript is handled internally, as it depends on settings. */
1161 1183
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698