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

Side by Side Diff: Source/core/css/themeWin.css

Issue 417353004: Use explicit case-insensitive attribute-value matching in UA-stylesheets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/themeMac.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Google Inc. All rights reserved. 2 * Copyright (C) 2008 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 /* These styles override the default styling for HTML elements as defined in 31 /* These styles override the default styling for HTML elements as defined in
32 WebCore/css/html.css. So far we have used this file exclusively for 32 WebCore/css/html.css. So far we have used this file exclusively for
33 making our form elements match Firefox's. */ 33 making our form elements match Firefox's. */
34 34
35 input:not([type]), 35 input:not([type]),
36 input[type="email"], 36 input[type="email" i],
37 input[type="number"], 37 input[type="number" i],
38 input[type="password"], 38 input[type="password" i],
39 input[type="tel"], 39 input[type="tel" i],
40 input[type="url"], 40 input[type="url" i],
41 input[type="text"] { 41 input[type="text" i] {
42 padding:1px 0; 42 padding:1px 0;
43 } 43 }
44 44
45 input[type="search"] { 45 input[type="search" i] {
46 padding:1px; 46 padding:1px;
47 } 47 }
48 48
49 input[type="checkbox"] { 49 input[type="checkbox" i] {
50 margin:3px 3px 3px 4px; 50 margin:3px 3px 3px 4px;
51 } 51 }
52 52
53 input[type="radio"] { 53 input[type="radio" i] {
54 margin:3px 3px 0 5px; 54 margin:3px 3px 0 5px;
55 } 55 }
56 56
57 input[type="range"] { 57 input[type="range" i] {
58 color: #c4c4c4; 58 color: #c4c4c4;
59 } 59 }
60 60
61 /* Not sure this is the right color. #EBEBE4 is what Firefox uses. 61 /* Not sure this is the right color. #EBEBE4 is what Firefox uses.
62 FIXME: Figure out how to support legacy input rendering. 62 FIXME: Figure out how to support legacy input rendering.
63 FIXME: Add input[type="file"] once we figure out our file inputs. 63 FIXME: Add input[type="file" i] once we figure out our file inputs.
64 FIXME: Add input[type="image"] once we figure out our image inputs. 64 FIXME: Add input[type="image" i] once we figure out our image inputs.
65 FIXME: We probably do the wrong thing if you put an invalid input type. 65 FIXME: We probably do the wrong thing if you put an invalid input type.
66 do we care? 66 do we care?
67 */ 67 */
68 textarea:disabled, 68 textarea:disabled,
69 input:not([type]):disabled, 69 input:not([type]):disabled,
70 input[type="color"]:disabled, 70 input[type="color" i]:disabled,
71 input[type="date"]:disabled, 71 input[type="date" i]:disabled,
72 input[type="datetime"]:disabled, 72 input[type="datetime" i]:disabled,
73 input[type="datetime-local"]:disabled, 73 input[type="datetime-local" i]:disabled,
74 input[type="email"]:disabled, 74 input[type="email" i]:disabled,
75 input[type="month"]:disabled, 75 input[type="month" i]:disabled,
76 input[type="password"]:disabled, 76 input[type="password" i]:disabled,
77 input[type="number"]:disabled, 77 input[type="number" i]:disabled,
78 input[type="search"]:disabled, 78 input[type="search" i]:disabled,
79 input[type="tel"]:disabled, 79 input[type="tel" i]:disabled,
80 input[type="text"]:disabled, 80 input[type="text" i]:disabled,
81 input[type="time"]:disabled, 81 input[type="time" i]:disabled,
82 input[type="url"]:disabled, 82 input[type="url" i]:disabled,
83 input[type="week"]:disabled { 83 input[type="week" i]:disabled {
84 background-color: #EBEBE4; 84 background-color: #EBEBE4;
85 } 85 }
86 86
87 input[type="search"]::-webkit-search-cancel-button { 87 input[type="search" i]::-webkit-search-cancel-button {
88 margin-right: 3px; 88 margin-right: 3px;
89 } 89 }
90 90
91 input[type="search"]::-webkit-search-results-decoration { 91 input[type="search" i]::-webkit-search-results-decoration {
92 margin: auto 3px auto 2px; 92 margin: auto 3px auto 2px;
93 } 93 }
94 94
95 input[type="search"]::-webkit-search-results-button { 95 input[type="search" i]::-webkit-search-results-button {
96 margin: auto 3px auto 2px; 96 margin: auto 3px auto 2px;
97 } 97 }
98 98
99 input::-webkit-outer-spin-button { 99 input::-webkit-outer-spin-button {
100 margin: 0; 100 margin: 0;
101 } 101 }
102 102
103 input[type="button"], input[type="submit"], input[type="reset"], input[type="fil e"]::-webkit-file-upload-button, button { 103 input[type="button" i], input[type="submit" i], input[type="reset" i], input[typ e="file" i]::-webkit-file-upload-button, button {
104 padding: 1px 6px; 104 padding: 1px 6px;
105 } 105 }
106 106
107 /* Windows selects are not rounded. Custom borders for them shouldn't be either. */ 107 /* Windows selects are not rounded. Custom borders for them shouldn't be either. */
108 keygen, 108 keygen,
109 select, 109 select,
110 select[size="0"], 110 select[size="0"],
111 select[size="1"] { 111 select[size="1"] {
112 border-radius: 0; 112 border-radius: 0;
113 /* Same as native_theme_base. */ 113 /* Same as native_theme_base. */
(...skipping 12 matching lines...) Expand all
126 for that computation to be correct */ 126 for that computation to be correct */
127 option { 127 option {
128 font: inherit !important; 128 font: inherit !important;
129 } 129 }
130 130
131 textarea { 131 textarea {
132 font-family: monospace; 132 font-family: monospace;
133 /* Same as native_theme_base. */ 133 /* Same as native_theme_base. */
134 border-color: #a9a9a9; 134 border-color: #a9a9a9;
135 } 135 }
OLDNEW
« no previous file with comments | « Source/core/css/themeMac.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698