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

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: gixed slow select-max-length.html 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]) {
esprehn 2014/06/23 21:59:55 This is not okay. We can't have selectors like thi
keishi 2014/07/01 04:53:32 Done.
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 select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]) option:ch ecked {
898 background-color: -internal-active-list-box-selection;
899 }
900
901 select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]):not(:disa bled) option:checked:not(:disabled) {
902 color: -internal-active-list-box-selection-text;
903 }
904
905 select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]):not(:focu s) option:checked {
906 background-color: -internal-inactive-list-box-selection;
907 }
908
909 select:-webkit-any([size]:not([size="0"]):not([size="1"]), [multiple]):not(:focu s):not(:disabled) option:checked:not(:disabled) {
esprehn 2014/06/23 21:59:55 I don't think we should be checking in crazy selec
keishi 2014/07/01 04:53:32 Done.
910 color: -internal-inactive-list-box-selection-text;
893 } 911 }
894 912
895 output { 913 output {
896 display: inline; 914 display: inline;
897 } 915 }
898 916
899 /* meter */ 917 /* meter */
900 918
901 meter { 919 meter {
902 -webkit-appearance: meter; 920 -webkit-appearance: meter;
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 @page { 1170 @page {
1153 /* FIXME: Define the right default values for page properties. */ 1171 /* FIXME: Define the right default values for page properties. */
1154 size: auto; 1172 size: auto;
1155 margin: auto; 1173 margin: auto;
1156 padding: 0px; 1174 padding: 0px;
1157 border-width: 0px; 1175 border-width: 0px;
1158 } 1176 }
1159 1177
1160 /* noscript is handled internally, as it depends on settings. */ 1178 /* noscript is handled internally, as it depends on settings. */
1161 1179
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698