darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 1 | /* |
| 2 | * The default style sheet used to render HTML. |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 3 | * |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 4 | * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
mitz@apple.com | f2029f6 | 2011-01-13 09:50:33 | [diff] [blame] | 5 | * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Library General Public |
| 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2 of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Library General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU Library General Public License |
| 18 | * along with this library; see the file COPYING.LIB. If not, write to |
ddkilzer | e6d8982 | 2007-09-26 02:29:57 | [diff] [blame] | 19 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 20 | * Boston, MA 02110-1301, USA. |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 21 | * |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 22 | */ |
| 23 | |
hyatt | c593ca5 | 2004-01-26 22:33:19 | [diff] [blame] | 24 | @namespace "http://www.w3.org/1999/xhtml"; |
| 25 | |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 26 | html { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 27 | display: block |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 28 | } |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 29 | |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 30 | /* children of the <head> element all have display:none */ |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 31 | head { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 32 | display: none |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 33 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 34 | |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 35 | meta { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 36 | display: none |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | title { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 40 | display: none |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | link { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 44 | display: none |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | style { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 48 | display: none |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | script { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 52 | display: none |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 53 | } |
| 54 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 55 | /* generic block-level elements */ |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 56 | |
hyatt | a6aeb22 | 2003-04-04 17:39:47 | [diff] [blame] | 57 | body { |
| 58 | display: block; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 59 | margin: 8px |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 60 | } |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 61 | |
esprehn@chromium.org | 752c212 | 2013-09-04 04:22:19 | [diff] [blame] | 62 | body:-webkit-full-page-media { |
| 63 | background-color: rgb(0, 0, 0) |
mkwst@chromium.org | 6c5e577 | 2013-01-03 14:30:22 | [diff] [blame] | 64 | } |
mkwst@chromium.org | 6c5e577 | 2013-01-03 14:30:22 | [diff] [blame] | 65 | |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 66 | p { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 67 | display: block; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 68 | -webkit-margin-before: 1__qem; |
| 69 | -webkit-margin-after: 1__qem; |
| 70 | -webkit-margin-start: 0; |
| 71 | -webkit-margin-end: 0; |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 72 | } |
| 73 | |
| 74 | div { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 75 | display: block |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 76 | } |
| 77 | |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 78 | layer { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 79 | display: block |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 80 | } |
| 81 | |
commit-queue@webkit.org | b89bfee | 2013-01-21 17:10:34 | [diff] [blame] | 82 | article, aside, footer, header, hgroup, main, nav, section { |
mjs@apple.com | fa45572 | 2009-08-19 05:09:35 | [diff] [blame] | 83 | display: block |
| 84 | } |
| 85 | |
hyatt | f9dafda | 2003-10-29 08:57:20 | [diff] [blame] | 86 | marquee { |
| 87 | display: inline-block; |
hyatt | f9dafda | 2003-10-29 08:57:20 | [diff] [blame] | 88 | } |
| 89 | |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 90 | address { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 91 | display: block |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 92 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 93 | |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 94 | blockquote { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 95 | display: block; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 96 | -webkit-margin-before: 1__qem; |
| 97 | -webkit-margin-after: 1em; |
| 98 | -webkit-margin-start: 40px; |
| 99 | -webkit-margin-end: 40px; |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 100 | } |
| 101 | |
commit-queue@webkit.org | f10e149 | 2010-12-09 16:40:53 | [diff] [blame] | 102 | figcaption { |
| 103 | display: block |
| 104 | } |
| 105 | |
| 106 | figure { |
| 107 | display: block; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 108 | -webkit-margin-before: 1em; |
| 109 | -webkit-margin-after: 1em; |
| 110 | -webkit-margin-start: 40px; |
| 111 | -webkit-margin-end: 40px; |
commit-queue@webkit.org | f10e149 | 2010-12-09 16:40:53 | [diff] [blame] | 112 | } |
| 113 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 114 | q { |
| 115 | display: inline |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 116 | } |
| 117 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 118 | q:before { |
carol.szabo@nokia.com | 28b08b2 | 2011-03-02 19:34:00 | [diff] [blame] | 119 | content: open-quote; |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 120 | } |
| 121 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 122 | q:after { |
carol.szabo@nokia.com | 28b08b2 | 2011-03-02 19:34:00 | [diff] [blame] | 123 | content: close-quote; |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 124 | } |
| 125 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 126 | center { |
| 127 | display: block; |
| 128 | /* special centering to be able to emulate the html4/netscape behaviour */ |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 129 | text-align: -webkit-center |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 130 | } |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 131 | |
| 132 | hr { |
| 133 | display: block; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 134 | -webkit-margin-before: 0.5em; |
| 135 | -webkit-margin-after: 0.5em; |
| 136 | -webkit-margin-start: auto; |
| 137 | -webkit-margin-end: auto; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 138 | border-style: inset; |
robhogan@gmail.com | 07f3823 | 2015-06-22 23:35:18 | [diff] [blame] | 139 | border-width: 1px |
hyatt | 94f0a53 | 2003-11-11 01:03:15 | [diff] [blame] | 140 | } |
| 141 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 142 | map { |
| 143 | display: inline |
| 144 | } |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 145 | |
pdr@chromium.org | ee6721b | 2013-08-22 03:33:30 | [diff] [blame] | 146 | video { |
| 147 | object-fit: contain; |
| 148 | } |
| 149 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 150 | /* heading elements */ |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 151 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 152 | h1 { |
| 153 | display: block; |
| 154 | font-size: 2em; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 155 | -webkit-margin-before: 0.67__qem; |
| 156 | -webkit-margin-after: 0.67em; |
| 157 | -webkit-margin-start: 0; |
| 158 | -webkit-margin-end: 0; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 159 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 160 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 161 | |
tkent@chromium.org | eb3adc4 | 2011-03-30 07:00:25 | [diff] [blame] | 162 | :-webkit-any(article,aside,nav,section) h1 { |
| 163 | font-size: 1.5em; |
| 164 | -webkit-margin-before: 0.83__qem; |
| 165 | -webkit-margin-after: 0.83em; |
| 166 | } |
| 167 | |
| 168 | :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 { |
| 169 | font-size: 1.17em; |
| 170 | -webkit-margin-before: 1__qem; |
| 171 | -webkit-margin-after: 1em; |
| 172 | } |
| 173 | |
| 174 | :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 { |
| 175 | font-size: 1.00em; |
| 176 | -webkit-margin-before: 1.33__qem; |
| 177 | -webkit-margin-after: 1.33em; |
| 178 | } |
| 179 | |
| 180 | :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 { |
| 181 | font-size: .83em; |
| 182 | -webkit-margin-before: 1.67__qem; |
| 183 | -webkit-margin-after: 1.67em; |
| 184 | } |
| 185 | |
| 186 | :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 { |
| 187 | font-size: .67em; |
| 188 | -webkit-margin-before: 2.33__qem; |
| 189 | -webkit-margin-after: 2.33em; |
| 190 | } |
| 191 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 192 | h2 { |
| 193 | display: block; |
| 194 | font-size: 1.5em; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 195 | -webkit-margin-before: 0.83__qem; |
| 196 | -webkit-margin-after: 0.83em; |
| 197 | -webkit-margin-start: 0; |
| 198 | -webkit-margin-end: 0; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 199 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 200 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 201 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 202 | h3 { |
| 203 | display: block; |
| 204 | font-size: 1.17em; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 205 | -webkit-margin-before: 1__qem; |
| 206 | -webkit-margin-after: 1em; |
| 207 | -webkit-margin-start: 0; |
| 208 | -webkit-margin-end: 0; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 209 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 210 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 211 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 212 | h4 { |
| 213 | display: block; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 214 | -webkit-margin-before: 1.33__qem; |
| 215 | -webkit-margin-after: 1.33em; |
| 216 | -webkit-margin-start: 0; |
| 217 | -webkit-margin-end: 0; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 218 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 219 | } |
| 220 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 221 | h5 { |
| 222 | display: block; |
| 223 | font-size: .83em; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 224 | -webkit-margin-before: 1.67__qem; |
| 225 | -webkit-margin-after: 1.67em; |
| 226 | -webkit-margin-start: 0; |
| 227 | -webkit-margin-end: 0; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 228 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 229 | } |
| 230 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 231 | h6 { |
| 232 | display: block; |
| 233 | font-size: .67em; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 234 | -webkit-margin-before: 2.33__qem; |
| 235 | -webkit-margin-after: 2.33em; |
| 236 | -webkit-margin-start: 0; |
| 237 | -webkit-margin-end: 0; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 238 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 239 | } |
| 240 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 241 | /* tables */ |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 242 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 243 | table { |
| 244 | display: table; |
| 245 | border-collapse: separate; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 246 | border-spacing: 2px; |
| 247 | border-color: gray |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 248 | } |
hyatt | 97bb4fe | 2002-12-15 07:39:56 | [diff] [blame] | 249 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 250 | thead { |
| 251 | display: table-header-group; |
hyatt | 66b64e1 | 2002-12-20 01:50:10 | [diff] [blame] | 252 | vertical-align: middle; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 253 | border-color: inherit |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 254 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 255 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 256 | tbody { |
| 257 | display: table-row-group; |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 258 | vertical-align: middle; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 259 | border-color: inherit |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 260 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 261 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 262 | tfoot { |
| 263 | display: table-footer-group; |
hyatt | 66b64e1 | 2002-12-20 01:50:10 | [diff] [blame] | 264 | vertical-align: middle; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 265 | border-color: inherit |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 266 | } |
| 267 | |
darin | aae2ca5 | 2007-05-01 19:59:53 | [diff] [blame] | 268 | /* for tables without table section elements (can happen with XHTML or dynamically created tables) */ |
| 269 | table > tr { |
| 270 | vertical-align: middle; |
| 271 | } |
| 272 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 273 | col { |
| 274 | display: table-column |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 275 | } |
| 276 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 277 | colgroup { |
| 278 | display: table-column-group |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 279 | } |
| 280 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 281 | tr { |
| 282 | display: table-row; |
| 283 | vertical-align: inherit; |
| 284 | border-color: inherit |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 285 | } |
| 286 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 287 | td, th { |
| 288 | display: table-cell; |
| 289 | vertical-align: inherit |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 290 | } |
| 291 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 292 | th { |
| 293 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 294 | } |
| 295 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 296 | caption { |
| 297 | display: table-caption; |
hyatt | b61521c | 2006-05-08 08:19:53 | [diff] [blame] | 298 | text-align: -webkit-center |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 299 | } |
| 300 | |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 301 | /* lists */ |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 302 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 303 | ul, menu, dir { |
| 304 | display: block; |
| 305 | list-style-type: disc; |
hyatt@apple.com | a36b0aac | 2010-11-10 01:46:10 | [diff] [blame] | 306 | -webkit-margin-before: 1__qem; |
| 307 | -webkit-margin-after: 1em; |
| 308 | -webkit-margin-start: 0; |
| 309 | -webkit-margin-end: 0; |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 310 | -webkit-padding-start: 40px |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 311 | } |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 312 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 313 | ol { |
| 314 | display: block; |
| 315 | list-style-type: decimal; |
hyatt@apple.com | a36b0aac | 2010-11-10 01:46:10 | [diff] [blame] | 316 | -webkit-margin-before: 1__qem; |
| 317 | -webkit-margin-after: 1em; |
| 318 | -webkit-margin-start: 0; |
| 319 | -webkit-margin-end: 0; |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 320 | -webkit-padding-start: 40px |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 321 | } |
| 322 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 323 | li { |
jeremy@chromium.org | c9aebbe | 2011-06-18 19:52:34 | [diff] [blame] | 324 | display: list-item; |
| 325 | text-align: -webkit-match-parent; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 326 | } |
| 327 | |
| 328 | ul ul, ol ul { |
| 329 | list-style-type: circle |
| 330 | } |
| 331 | |
| 332 | ol ol ul, ol ul ul, ul ol ul, ul ul ul { |
| 333 | list-style-type: square |
| 334 | } |
| 335 | |
| 336 | dd { |
| 337 | display: block; |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 338 | -webkit-margin-start: 40px |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 339 | } |
| 340 | |
| 341 | dl { |
| 342 | display: block; |
hyatt@apple.com | a36b0aac | 2010-11-10 01:46:10 | [diff] [blame] | 343 | -webkit-margin-before: 1__qem; |
| 344 | -webkit-margin-after: 1em; |
| 345 | -webkit-margin-start: 0; |
| 346 | -webkit-margin-end: 0; |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 347 | } |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 348 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 349 | dt { |
| 350 | display: block |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 351 | } |
hyatt | ed84c1c | 2004-04-29 01:19:04 | [diff] [blame] | 352 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 353 | ol ul, ul ol, ul ul, ol ol { |
hyatt@apple.com | a36b0aac | 2010-11-10 01:46:10 | [diff] [blame] | 354 | -webkit-margin-before: 0; |
| 355 | -webkit-margin-after: 0 |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 356 | } |
| 357 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 358 | /* form elements */ |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 359 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 360 | form { |
| 361 | display: block; |
morrita@google.com | 4646de8 | 2011-02-07 01:40:17 | [diff] [blame] | 362 | margin-top: 0__qem; |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 363 | } |
| 364 | |
hyatt | 0de4795 | 2006-09-13 06:23:56 | [diff] [blame] | 365 | label { |
| 366 | cursor: default; |
hyatt | 0de4795 | 2006-09-13 06:23:56 | [diff] [blame] | 367 | } |
| 368 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 369 | legend { |
mitz@apple.com | 177c28f | 2009-03-09 22:20:50 | [diff] [blame] | 370 | display: block; |
hyatt@apple.com | 9136a00 | 2010-10-06 12:10:02 | [diff] [blame] | 371 | -webkit-padding-start: 2px; |
| 372 | -webkit-padding-end: 2px; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 373 | border: none |
hyatt | 14633db | 2003-05-21 07:00:43 | [diff] [blame] | 374 | } |
| 375 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 376 | fieldset { |
hyatt | 14633db | 2003-05-21 07:00:43 | [diff] [blame] | 377 | display: block; |
hyatt@apple.com | 9136a00 | 2010-10-06 12:10:02 | [diff] [blame] | 378 | -webkit-margin-start: 2px; |
| 379 | -webkit-margin-end: 2px; |
| 380 | -webkit-padding-before: 0.35em; |
| 381 | -webkit-padding-start: 0.75em; |
| 382 | -webkit-padding-end: 0.75em; |
| 383 | -webkit-padding-after: 0.625em; |
ojan@chromium.org | 181ffef | 2013-02-20 18:45:22 | [diff] [blame] | 384 | border: 2px groove ThreeDFace; |
| 385 | min-width: -webkit-min-content; |
hyatt | 14633db | 2003-05-21 07:00:43 | [diff] [blame] | 386 | } |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 387 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 388 | button { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 389 | -webkit-appearance: button; |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 390 | } |
| 391 | |
hyatt@apple.com | 4796776 | 2010-09-22 22:11:01 | [diff] [blame] | 392 | /* Form controls don't go vertical. */ |
mkwst@chromium.org | f1f9bcd | 2014-02-27 10:32:44 | [diff] [blame] | 393 | input, textarea, keygen, select, button, meter, progress { |
tony@chromium.org | 096eb46 | 2012-10-05 23:57:14 | [diff] [blame] | 394 | -webkit-writing-mode: horizontal-tb !important; |
hyatt@apple.com | 4796776 | 2010-09-22 22:11:01 | [diff] [blame] | 395 | } |
| 396 | |
mkwst@chromium.org | f1f9bcd | 2014-02-27 10:32:44 | [diff] [blame] | 397 | input, textarea, keygen, select, button { |
hyatt | 8190538 | 2003-11-17 20:38:09 | [diff] [blame] | 398 | margin: 0__qem; |
hyatt | 2ea4801 | 2006-08-15 22:37:51 | [diff] [blame] | 399 | font: -webkit-small-control; |
andersr@opera.com | 37fa6a1 | 2015-01-12 11:37:00 | [diff] [blame] | 400 | text-rendering: auto; /* FIXME: Remove when tabs work with optimizeLegibility. */ |
hyatt | 70db89e | 2005-07-20 00:45:49 | [diff] [blame] | 401 | color: initial; |
hyatt | 1846230 | 2005-10-26 06:08:03 | [diff] [blame] | 402 | letter-spacing: normal; |
| 403 | word-spacing: normal; |
| 404 | line-height: normal; |
| 405 | text-transform: none; |
| 406 | text-indent: 0; |
hyatt | 45f78ae | 2007-07-16 21:02:02 | [diff] [blame] | 407 | text-shadow: none; |
hyatt | 70db89e | 2005-07-20 00:45:49 | [diff] [blame] | 408 | display: inline-block; |
commit-queue@webkit.org | 916decc | 2012-10-07 14:22:02 | [diff] [blame] | 409 | text-align: start; |
hyatt | ea18783 | 2002-11-12 21:44:52 | [diff] [blame] | 410 | } |
| 411 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 412 | input[type="hidden" i] { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 413 | display: none |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 414 | } |
| 415 | |
rune@opera.com | a67b7f9 | 2015-04-14 11:32:55 | [diff] [blame] | 416 | input { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 417 | -webkit-appearance: textfield; |
adele | e843f09 | 2006-03-30 01:49:57 | [diff] [blame] | 418 | padding: 1px; |
| 419 | background-color: white; |
| 420 | border: 2px inset; |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 421 | -webkit-rtl-ordering: logical; |
adele | 34e1547 | 2006-04-25 00:30:13 | [diff] [blame] | 422 | -webkit-user-select: text; |
adele | 11eb9db | 2007-04-05 21:26:09 | [diff] [blame] | 423 | cursor: auto; |
adele | e843f09 | 2006-03-30 01:49:57 | [diff] [blame] | 424 | } |
| 425 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 426 | input[type="search" i] { |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 427 | -webkit-appearance: searchfield; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 428 | box-sizing: border-box; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 429 | } |
| 430 | |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 431 | input::-webkit-textfield-decoration-container { |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 432 | display: flex; |
| 433 | align-items: center; |
shinyak@chromium.org | bcfebc3 | 2012-08-02 04:57:24 | [diff] [blame] | 434 | -webkit-user-modify: read-only !important; |
tasak@google.com | eb90ed3 | 2012-11-14 10:47:15 | [diff] [blame] | 435 | content: none !important; |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 436 | } |
| 437 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 438 | input[type="search" i]::-webkit-textfield-decoration-container { |
tkent@chromium.org | 590a250 | 2011-07-20 07:52:39 | [diff] [blame] | 439 | direction: ltr; |
| 440 | } |
| 441 | |
keishi@webkit.org | 8b81087 | 2013-03-07 10:06:19 | [diff] [blame] | 442 | input::-webkit-clear-button { |
| 443 | -webkit-appearance: searchfield-cancel-button; |
| 444 | display: inline-block; |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 445 | flex: none; |
keishi@webkit.org | 8b81087 | 2013-03-07 10:06:19 | [diff] [blame] | 446 | -webkit-user-modify: read-only !important; |
keishi@chromium.org | 5062c94 | 2013-05-31 13:06:32 | [diff] [blame] | 447 | -webkit-margin-start: 2px; |
tkent@chromium.org | 322d607 | 2013-12-12 00:14:36 | [diff] [blame] | 448 | opacity: 0; |
leviw@chromium.org | cd892be | 2015-02-26 02:07:36 | [diff] [blame] | 449 | pointer-events: none; |
tkent@chromium.org | 322d607 | 2013-12-12 00:14:36 | [diff] [blame] | 450 | } |
| 451 | |
| 452 | input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-clear-button { |
| 453 | opacity: 1; |
| 454 | pointer-events: auto; |
keishi@webkit.org | 8b81087 | 2013-03-07 10:06:19 | [diff] [blame] | 455 | } |
| 456 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 457 | input[type="search" i]::-webkit-search-cancel-button { |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 458 | -webkit-appearance: searchfield-cancel-button; |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 459 | display: block; |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 460 | flex: none; |
shinyak@chromium.org | bcfebc3 | 2012-08-02 04:57:24 | [diff] [blame] | 461 | -webkit-user-modify: read-only !important; |
keishi@chromium.org | f985bb7 | 2013-06-21 02:40:02 | [diff] [blame] | 462 | -webkit-margin-start: 1px; |
tkent@chromium.org | e3cfcc3 | 2013-12-10 07:54:28 | [diff] [blame] | 463 | opacity: 0; |
| 464 | pointer-events: none; |
| 465 | } |
| 466 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 467 | input[type="search" i]:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-search-cancel-button { |
tkent@chromium.org | e3cfcc3 | 2013-12-10 07:54:28 | [diff] [blame] | 468 | opacity: 1; |
| 469 | pointer-events: auto; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 470 | } |
| 471 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 472 | input[type="search" i]::-webkit-search-decoration { |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 473 | -webkit-appearance: searchfield-decoration; |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 474 | display: block; |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 475 | flex: none; |
shinyak@chromium.org | bcfebc3 | 2012-08-02 04:57:24 | [diff] [blame] | 476 | -webkit-user-modify: read-only !important; |
commit-queue@webkit.org | ea710ae | 2013-03-16 02:27:56 | [diff] [blame] | 477 | -webkit-align-self: flex-start; |
| 478 | margin: auto 0; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 479 | } |
| 480 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 481 | input[type="search" i]::-webkit-search-results-decoration { |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 482 | -webkit-appearance: searchfield-results-decoration; |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 483 | display: block; |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 484 | flex: none; |
shinyak@chromium.org | bcfebc3 | 2012-08-02 04:57:24 | [diff] [blame] | 485 | -webkit-user-modify: read-only !important; |
commit-queue@webkit.org | ea710ae | 2013-03-16 02:27:56 | [diff] [blame] | 486 | -webkit-align-self: flex-start; |
| 487 | margin: auto 0; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 488 | } |
| 489 | |
eric@webkit.org | 1f8902b | 2009-12-21 04:57:59 | [diff] [blame] | 490 | input::-webkit-inner-spin-button { |
| 491 | -webkit-appearance: inner-spin-button; |
tkent@chromium.org | 18ebd0d | 2014-04-11 05:24:39 | [diff] [blame] | 492 | display: inline-block; |
tkent@chromium.org | 2780511 | 2011-04-07 07:03:22 | [diff] [blame] | 493 | cursor: default; |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 494 | flex: none; |
tkent@chromium.org | 18ebd0d | 2014-04-11 05:24:39 | [diff] [blame] | 495 | align-self: stretch; |
tkent@chromium.org | fce8bf9 | 2010-04-30 08:45:49 | [diff] [blame] | 496 | -webkit-user-select: none; |
shinyak@chromium.org | bcfebc3 | 2012-08-02 04:57:24 | [diff] [blame] | 497 | -webkit-user-modify: read-only !important; |
tkent@chromium.org | 47f47dc | 2013-12-11 07:01:40 | [diff] [blame] | 498 | opacity: 0; |
| 499 | pointer-events: none; |
| 500 | } |
| 501 | |
tkent@chromium.org | 322d607 | 2013-12-12 00:14:36 | [diff] [blame] | 502 | input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-inner-spin-button { |
tkent@chromium.org | 47f47dc | 2013-12-11 07:01:40 | [diff] [blame] | 503 | opacity: 1; |
| 504 | pointer-events: auto; |
| 505 | } |
| 506 | |
morrita@google.com | 4646de8 | 2011-02-07 01:40:17 | [diff] [blame] | 507 | keygen, select { |
commit-queue@webkit.org | d32df07 | 2012-10-05 16:28:29 | [diff] [blame] | 508 | border-radius: 5px; |
morrita@google.com | 4646de8 | 2011-02-07 01:40:17 | [diff] [blame] | 509 | } |
| 510 | |
| 511 | keygen::-webkit-keygen-select { |
| 512 | margin: 0px; |
| 513 | } |
| 514 | |
adele | 2d542cb | 2006-05-17 23:32:38 | [diff] [blame] | 515 | textarea { |
adele | 6401bff | 2006-06-21 07:23:06 | [diff] [blame] | 516 | -webkit-appearance: textarea; |
| 517 | background-color: white; |
adele | 3a2e043 | 2006-06-16 18:27:54 | [diff] [blame] | 518 | border: 1px solid; |
adele | 2d542cb | 2006-05-17 23:32:38 | [diff] [blame] | 519 | -webkit-rtl-ordering: logical; |
| 520 | -webkit-user-select: text; |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 521 | flex-direction: column; |
hyatt | 1c78686 | 2006-07-19 00:16:34 | [diff] [blame] | 522 | resize: auto; |
adele | 11eb9db | 2007-04-05 21:26:09 | [diff] [blame] | 523 | cursor: auto; |
ojan@chromium.org | 0484dd0 | 2009-04-29 20:31:53 | [diff] [blame] | 524 | padding: 2px; |
levin@chromium.org | fb47c84 | 2009-07-16 05:32:39 | [diff] [blame] | 525 | white-space: pre-wrap; |
| 526 | word-wrap: break-word; |
adele | 2d542cb | 2006-05-17 23:32:38 | [diff] [blame] | 527 | } |
| 528 | |
tkent@chromium.org | 840b954 | 2011-07-14 02:16:54 | [diff] [blame] | 529 | ::-webkit-input-placeholder { |
| 530 | -webkit-text-security: none; |
adele@apple.com | 81be3ce | 2008-09-30 23:21:50 | [diff] [blame] | 531 | color: darkGray; |
tkent@chromium.org | 840b954 | 2011-07-14 02:16:54 | [diff] [blame] | 532 | pointer-events: none !important; |
tkent@chromium.org | 840b954 | 2011-07-14 02:16:54 | [diff] [blame] | 533 | } |
| 534 | |
mkwst@chromium.org | f1f9bcd | 2014-02-27 10:32:44 | [diff] [blame] | 535 | input::-webkit-input-placeholder { |
tkent@chromium.org | 840b954 | 2011-07-14 02:16:54 | [diff] [blame] | 536 | white-space: pre; |
| 537 | word-wrap: normal; |
| 538 | overflow: hidden; |
shinyak@chromium.org | bcfebc3 | 2012-08-02 04:57:24 | [diff] [blame] | 539 | -webkit-user-modify: read-only !important; |
adele@apple.com | 81be3ce | 2008-09-30 23:21:50 | [diff] [blame] | 540 | } |
| 541 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 542 | input[type="password" i] { |
adele | ef0b4ac | 2006-08-30 18:32:40 | [diff] [blame] | 543 | -webkit-text-security: disc !important; |
adele | ceb356d | 2006-08-26 00:33:22 | [diff] [blame] | 544 | } |
| 545 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 546 | input[type="hidden" i], input[type="image" i], input[type="file" i] { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 547 | -webkit-appearance: initial; |
adele | e843f09 | 2006-03-30 01:49:57 | [diff] [blame] | 548 | padding: initial; |
| 549 | background-color: initial; |
| 550 | border: initial; |
| 551 | } |
| 552 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 553 | input[type="file" i] { |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 554 | align-items: baseline; |
tkent@chromium.org | cb0c8be | 2011-09-02 02:12:28 | [diff] [blame] | 555 | color: inherit; |
simon.fraser@apple.com | e8e1abb | 2008-10-03 00:43:39 | [diff] [blame] | 556 | text-align: start !important; |
aroben | 226ef41 | 2006-09-12 19:59:32 | [diff] [blame] | 557 | } |
| 558 | |
ziran.sun@samsung.com | 9079424 | 2014-03-18 21:25:45 | [diff] [blame] | 559 | input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill { |
isherman@chromium.org | 64b382e | 2012-05-01 03:21:54 | [diff] [blame] | 560 | background-color: #FAFFBD !important; |
| 561 | background-image:none !important; |
| 562 | color: #000000 !important; |
adele | a464e9f | 2006-04-13 01:50:04 | [diff] [blame] | 563 | } |
| 564 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 565 | input[type="radio" i], input[type="checkbox" i] { |
hyatt | 2157335 | 2005-07-29 23:02:45 | [diff] [blame] | 566 | margin: 3px 0.5ex; |
adele | e843f09 | 2006-03-30 01:49:57 | [diff] [blame] | 567 | padding: initial; |
| 568 | background-color: initial; |
| 569 | border: initial; |
hyatt | 2157335 | 2005-07-29 23:02:45 | [diff] [blame] | 570 | } |
| 571 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 572 | input[type="button" i], input[type="submit" i], input[type="reset" i] { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 573 | -webkit-appearance: push-button; |
tkent@chromium.org | fb0d4a1 | 2013-12-04 10:16:51 | [diff] [blame] | 574 | -webkit-user-select: none; |
hyatt | 1846230 | 2005-10-26 06:08:03 | [diff] [blame] | 575 | white-space: pre |
hyatt | f5b9a82 | 2005-10-21 21:27:51 | [diff] [blame] | 576 | } |
| 577 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 578 | input[type="file" i]::-webkit-file-upload-button { |
dglazkov@chromium.org | fa74b11 | 2011-06-04 17:14:22 | [diff] [blame] | 579 | -webkit-appearance: push-button; |
shinyak@chromium.org | bcfebc3 | 2012-08-02 04:57:24 | [diff] [blame] | 580 | -webkit-user-modify: read-only !important; |
dglazkov@chromium.org | fa74b11 | 2011-06-04 17:14:22 | [diff] [blame] | 581 | white-space: nowrap; |
| 582 | margin: 0; |
tkent@chromium.org | 9b64104 | 2011-09-01 02:40:01 | [diff] [blame] | 583 | font-size: inherit; |
dglazkov@chromium.org | fa74b11 | 2011-06-04 17:14:22 | [diff] [blame] | 584 | } |
| 585 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 586 | input[type="button" i], input[type="submit" i], input[type="reset" i], input[type="file" i]::-webkit-file-upload-button, button { |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 587 | align-items: flex-start; |
hyatt | 1846230 | 2005-10-26 06:08:03 | [diff] [blame] | 588 | text-align: center; |
hyatt | 969dc1e | 2005-10-22 18:19:27 | [diff] [blame] | 589 | cursor: default; |
| 590 | color: ButtonText; |
hyatt | cc278a4 | 2005-10-28 07:03:26 | [diff] [blame] | 591 | padding: 2px 6px 3px 6px; |
| 592 | border: 2px outset ButtonFace; |
hyatt | b265025 | 2006-05-08 08:17:07 | [diff] [blame] | 593 | background-color: ButtonFace; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 594 | box-sizing: border-box |
hyatt | 969dc1e | 2005-10-22 18:19:27 | [diff] [blame] | 595 | } |
| 596 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 597 | input[type="range" i] { |
adele | 832cc33 | 2006-11-16 01:42:28 | [diff] [blame] | 598 | -webkit-appearance: slider-horizontal; |
| 599 | padding: initial; |
| 600 | border: initial; |
adele | 832cc33 | 2006-11-16 01:42:28 | [diff] [blame] | 601 | margin: 2px; |
keishi@webkit.org | edcd256 | 2012-06-15 06:52:53 | [diff] [blame] | 602 | color: #909090; |
adele | 832cc33 | 2006-11-16 01:42:28 | [diff] [blame] | 603 | } |
| 604 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 605 | input[type="range" i]::-webkit-slider-container, input[type="range" i]::-webkit-media-slider-container { |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 606 | flex: 1; |
cbiesinger@chromium.org | f11376b | 2015-04-14 05:11:05 | [diff] [blame] | 607 | min-width: 0; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 608 | box-sizing: border-box; |
shinyak@chromium.org | bcfebc3 | 2012-08-02 04:57:24 | [diff] [blame] | 609 | -webkit-user-modify: read-only !important; |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 610 | display: flex; |
tkent@chromium.org | 3630f91 | 2011-06-14 03:46:30 | [diff] [blame] | 611 | } |
| 612 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 613 | input[type="range" i]::-webkit-slider-runnable-track { |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 614 | flex: 1; |
cbiesinger@chromium.org | f11376b | 2015-04-14 05:11:05 | [diff] [blame] | 615 | min-width: 0; |
tony@chromium.org | 1eee633 | 2012-10-16 21:00:13 | [diff] [blame] | 616 | -webkit-align-self: center; |
| 617 | |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 618 | box-sizing: border-box; |
shinyak@chromium.org | bcfebc3 | 2012-08-02 04:57:24 | [diff] [blame] | 619 | -webkit-user-modify: read-only !important; |
tkent@chromium.org | 3630f91 | 2011-06-14 03:46:30 | [diff] [blame] | 620 | display: block; |
| 621 | } |
| 622 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 623 | input[type="range" i]::-webkit-slider-thumb, input[type="range" i]::-webkit-media-slider-thumb { |
adele | 832cc33 | 2006-11-16 01:42:28 | [diff] [blame] | 624 | -webkit-appearance: sliderthumb-horizontal; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 625 | box-sizing: border-box; |
shinyak@chromium.org | bcfebc3 | 2012-08-02 04:57:24 | [diff] [blame] | 626 | -webkit-user-modify: read-only !important; |
dglazkov@chromium.org | b6ebe4e | 2011-01-11 21:05:33 | [diff] [blame] | 627 | display: block; |
adele | 832cc33 | 2006-11-16 01:42:28 | [diff] [blame] | 628 | } |
| 629 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 630 | input[type="button" i]:disabled, input[type="submit" i]:disabled, input[type="reset" i]:disabled, |
| 631 | input[type="file" i]:disabled::-webkit-file-upload-button, button:disabled, |
yosin@chromium.org | 9bb716b | 2012-08-02 07:14:49 | [diff] [blame] | 632 | select:disabled, keygen:disabled, optgroup:disabled, option:disabled, |
| 633 | select[disabled]>option { |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 634 | color: GrayText |
hyatt | f5b9a82 | 2005-10-21 21:27:51 | [diff] [blame] | 635 | } |
| 636 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 637 | input[type="button" i]:active, input[type="submit" i]:active, input[type="reset" i]:active, input[type="file" i]:active::-webkit-file-upload-button, button:active { |
hyatt | cc278a4 | 2005-10-28 07:03:26 | [diff] [blame] | 638 | border-style: inset |
| 639 | } |
| 640 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 641 | input[type="button" i]:active:disabled, input[type="submit" i]:active:disabled, input[type="reset" i]:active:disabled, input[type="file" i]:active:disabled::-webkit-file-upload-button, button:active:disabled { |
hyatt | cc278a4 | 2005-10-28 07:03:26 | [diff] [blame] | 642 | border-style: outset |
| 643 | } |
| 644 | |
keishi@chromium.org | bab429b | 2014-07-17 10:44:09 | [diff] [blame] | 645 | option:-internal-spatial-navigation-focus { |
| 646 | outline: black dashed 1px; |
| 647 | outline-offset: -1px; |
| 648 | } |
| 649 | |
tkent@chromium.org | 2fa974e | 2014-02-25 07:37:49 | [diff] [blame] | 650 | datalist { |
| 651 | display: none |
| 652 | } |
| 653 | |
zhaoze.zhou@partner.samsung.com | 6f5f864 | 2014-08-20 00:22:19 | [diff] [blame] | 654 | area { |
tasak@google.com | 18d824b | 2015-02-24 06:34:00 | [diff] [blame] | 655 | display: inline; |
| 656 | cursor: pointer; |
zhaoze.zhou@partner.samsung.com | 6f5f864 | 2014-08-20 00:22:19 | [diff] [blame] | 657 | } |
| 658 | |
| 659 | param { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 660 | display: none |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 661 | } |
| 662 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 663 | input[type="checkbox" i] { |
hyatt | b265025 | 2006-05-08 08:17:07 | [diff] [blame] | 664 | -webkit-appearance: checkbox; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 665 | box-sizing: border-box; |
hyatt | 70db89e | 2005-07-20 00:45:49 | [diff] [blame] | 666 | } |
| 667 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 668 | input[type="radio" i] { |
hyatt | b265025 | 2006-05-08 08:17:07 | [diff] [blame] | 669 | -webkit-appearance: radio; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 670 | box-sizing: border-box; |
hyatt | b265025 | 2006-05-08 08:17:07 | [diff] [blame] | 671 | } |
| 672 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 673 | input[type="color" i] { |
keishi@webkit.org | 4e097fd | 2011-05-26 09:58:25 | [diff] [blame] | 674 | -webkit-appearance: square-button; |
| 675 | width: 44px; |
| 676 | height: 23px; |
tkent@chromium.org | e20510d | 2014-04-08 07:27:09 | [diff] [blame] | 677 | background-color: ButtonFace; |
| 678 | /* Same as native_theme_base. */ |
| 679 | border: 1px #a9a9a9 solid; |
| 680 | padding: 1px 2px; |
keishi@webkit.org | 4e097fd | 2011-05-26 09:58:25 | [diff] [blame] | 681 | } |
| 682 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 683 | input[type="color" i]::-webkit-color-swatch-wrapper { |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 684 | display:flex; |
keishi@webkit.org | 4e097fd | 2011-05-26 09:58:25 | [diff] [blame] | 685 | padding: 4px 2px; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 686 | box-sizing: border-box; |
shinyak@chromium.org | bcfebc3 | 2012-08-02 04:57:24 | [diff] [blame] | 687 | -webkit-user-modify: read-only !important; |
keishi@webkit.org | 4e097fd | 2011-05-26 09:58:25 | [diff] [blame] | 688 | width: 100%; |
| 689 | height: 100% |
| 690 | } |
| 691 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 692 | input[type="color" i]::-webkit-color-swatch { |
keishi@webkit.org | 4e097fd | 2011-05-26 09:58:25 | [diff] [blame] | 693 | background-color: #000000; |
| 694 | border: 1px solid #777777; |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 695 | flex: 1; |
cbiesinger@chromium.org | f11376b | 2015-04-14 05:11:05 | [diff] [blame] | 696 | min-width: 0; |
shinyak@chromium.org | bcfebc3 | 2012-08-02 04:57:24 | [diff] [blame] | 697 | -webkit-user-modify: read-only !important; |
keishi@webkit.org | 4e097fd | 2011-05-26 09:58:25 | [diff] [blame] | 698 | } |
| 699 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 700 | input[type="color" i][list] { |
tkent@chromium.org | 2fa974e | 2014-02-25 07:37:49 | [diff] [blame] | 701 | -webkit-appearance: menulist; |
| 702 | width: 88px; |
| 703 | height: 23px |
| 704 | } |
| 705 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 706 | input[type="color" i][list]::-webkit-color-swatch-wrapper { |
tkent@chromium.org | 2fa974e | 2014-02-25 07:37:49 | [diff] [blame] | 707 | padding-left: 8px; |
| 708 | padding-right: 24px; |
| 709 | } |
| 710 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 711 | input[type="color" i][list]::-webkit-color-swatch { |
tkent@chromium.org | 2fa974e | 2014-02-25 07:37:49 | [diff] [blame] | 712 | border-color: #000000; |
| 713 | } |
| 714 | |
tkent@chromium.org | bd1f4ff | 2012-04-02 09:05:32 | [diff] [blame] | 715 | input::-webkit-calendar-picker-indicator { |
tkent@chromium.org | e920f16 | 2013-02-28 20:59:15 | [diff] [blame] | 716 | display: inline-block; |
tkent@chromium.org | bd1f4ff | 2012-04-02 09:05:32 | [diff] [blame] | 717 | width: 0.66em; |
| 718 | height: 0.66em; |
tkent@chromium.org | 926d40a | 2012-04-24 14:47:23 | [diff] [blame] | 719 | padding: 0.17em 0.34em; |
shinyak@chromium.org | bcfebc3 | 2012-08-02 04:57:24 | [diff] [blame] | 720 | -webkit-user-modify: read-only !important; |
tkent@chromium.org | 322d607 | 2013-12-12 00:14:36 | [diff] [blame] | 721 | opacity: 0; |
| 722 | pointer-events: none; |
tkent@chromium.org | 926d40a | 2012-04-24 14:47:23 | [diff] [blame] | 723 | } |
| 724 | |
| 725 | input::-webkit-calendar-picker-indicator:hover { |
| 726 | background-color: #eee; |
tkent@chromium.org | bd1f4ff | 2012-04-02 09:05:32 | [diff] [blame] | 727 | } |
dtrebbien@gmail.com | 45f220d | 2013-07-17 06:03:27 | [diff] [blame] | 728 | |
tkent@chromium.org | 88a8ac9 | 2014-09-16 08:43:45 | [diff] [blame] | 729 | input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-calendar-picker-indicator, |
| 730 | input::-webkit-calendar-picker-indicator:focus { |
tkent@chromium.org | 322d607 | 2013-12-12 00:14:36 | [diff] [blame] | 731 | opacity: 1; |
| 732 | pointer-events: auto; |
| 733 | } |
| 734 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 735 | input[type="date" i]:disabled::-webkit-clear-button, |
| 736 | input[type="date" i]:disabled::-webkit-inner-spin-button, |
| 737 | input[type="datetime-local" i]:disabled::-webkit-clear-button, |
| 738 | input[type="datetime-local" i]:disabled::-webkit-inner-spin-button, |
| 739 | input[type="month" i]:disabled::-webkit-clear-button, |
| 740 | input[type="month" i]:disabled::-webkit-inner-spin-button, |
| 741 | input[type="week" i]:disabled::-webkit-clear-button, |
| 742 | input[type="week" i]:disabled::-webkit-inner-spin-button, |
dtrebbien@gmail.com | 45f220d | 2013-07-17 06:03:27 | [diff] [blame] | 743 | input:disabled::-webkit-calendar-picker-indicator, |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 744 | input[type="date" i][readonly]::-webkit-clear-button, |
| 745 | input[type="date" i][readonly]::-webkit-inner-spin-button, |
| 746 | input[type="datetime-local" i][readonly]::-webkit-clear-button, |
| 747 | input[type="datetime-local" i][readonly]::-webkit-inner-spin-button, |
| 748 | input[type="month" i][readonly]::-webkit-clear-button, |
| 749 | input[type="month" i][readonly]::-webkit-inner-spin-button, |
| 750 | input[type="week" i][readonly]::-webkit-clear-button, |
| 751 | input[type="week" i][readonly]::-webkit-inner-spin-button, |
dtrebbien@gmail.com | 45f220d | 2013-07-17 06:03:27 | [diff] [blame] | 752 | input[readonly]::-webkit-calendar-picker-indicator { |
| 753 | visibility: hidden; |
| 754 | } |
tkent@chromium.org | bd1f4ff | 2012-04-02 09:05:32 | [diff] [blame] | 755 | |
morrita@google.com | 4646de8 | 2011-02-07 01:40:17 | [diff] [blame] | 756 | select { |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 757 | -webkit-appearance: menulist; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 758 | box-sizing: border-box; |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 759 | align-items: center; |
bdash | f448ccd | 2007-04-12 04:45:48 | [diff] [blame] | 760 | border: 1px solid; |
bdash | f448ccd | 2007-04-12 04:45:48 | [diff] [blame] | 761 | white-space: pre; |
ap | 0e96bcc | 2006-07-24 16:21:36 | [diff] [blame] | 762 | -webkit-rtl-ordering: logical; |
adele | c15bc25 | 2006-08-25 23:44:05 | [diff] [blame] | 763 | color: black; |
adele | c15bc25 | 2006-08-25 23:44:05 | [diff] [blame] | 764 | background-color: white; |
adele | 11eb9db | 2007-04-05 21:26:09 | [diff] [blame] | 765 | cursor: default; |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 766 | } |
| 767 | |
cbiesinger@chromium.org | 34cea78 | 2014-11-25 20:46:24 | [diff] [blame] | 768 | select:not(:-internal-list-box) { |
| 769 | overflow: visible !important; |
| 770 | } |
| 771 | |
keishi@chromium.org | 17c2414 | 2014-08-08 03:39:44 | [diff] [blame] | 772 | select:-internal-list-box { |
adele | d62c9ce | 2006-09-29 23:13:49 | [diff] [blame] | 773 | -webkit-appearance: listbox; |
cbiesinger@chromium.org | 7c1dda0 | 2013-08-30 01:27:26 | [diff] [blame] | 774 | align-items: flex-start; |
adele | d62c9ce | 2006-09-29 23:13:49 | [diff] [blame] | 775 | border: 1px inset gray; |
commit-queue@webkit.org | d32df07 | 2012-10-05 16:28:29 | [diff] [blame] | 776 | border-radius: initial; |
keishi@chromium.org | bab429b | 2014-07-17 10:44:09 | [diff] [blame] | 777 | overflow-x: hidden; |
| 778 | overflow-y: scroll; |
| 779 | vertical-align: text-bottom; |
| 780 | -webkit-user-select: none; |
| 781 | white-space: nowrap; |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 782 | } |
kdecker | 0c25f70 | 2007-03-06 22:38:17 | [diff] [blame] | 783 | |
adele | aa94979 | 2006-07-06 05:47:30 | [diff] [blame] | 784 | optgroup { |
| 785 | font-weight: bolder; |
keishi@chromium.org | bab429b | 2014-07-17 10:44:09 | [diff] [blame] | 786 | display: block; |
adele | aa94979 | 2006-07-06 05:47:30 | [diff] [blame] | 787 | } |
| 788 | |
| 789 | option { |
| 790 | font-weight: normal; |
keishi@chromium.org | bab429b | 2014-07-17 10:44:09 | [diff] [blame] | 791 | display: block; |
| 792 | padding: 0 2px 1px 2px; |
| 793 | white-space: pre; |
| 794 | min-height: 1.2em; |
| 795 | } |
| 796 | |
keishi@chromium.org | a03d292 | 2014-12-15 03:30:02 | [diff] [blame] | 797 | select:-internal-list-box optgroup option:before { |
| 798 | content: "\00a0\00a0\00a0\00a0";; |
| 799 | } |
| 800 | |
keishi@chromium.org | 08e97a9 | 2014-09-22 05:49:35 | [diff] [blame] | 801 | select:-internal-list-box option, |
| 802 | select:-internal-list-box optgroup { |
| 803 | line-height: initial !important; |
| 804 | } |
| 805 | |
keishi@chromium.org | 17c2414 | 2014-08-08 03:39:44 | [diff] [blame] | 806 | select:-internal-list-box:focus option:checked { |
| 807 | background-color: -internal-active-list-box-selection !important; |
| 808 | color: -internal-active-list-box-selection-text !important; |
keishi@chromium.org | bab429b | 2014-07-17 10:44:09 | [diff] [blame] | 809 | } |
| 810 | |
keishi@chromium.org | 17c2414 | 2014-08-08 03:39:44 | [diff] [blame] | 811 | select:-internal-list-box option:checked { |
| 812 | background-color: -internal-inactive-list-box-selection !important; |
| 813 | color: -internal-inactive-list-box-selection-text !important; |
keishi@chromium.org | fc92dbc | 2014-07-23 10:18:27 | [diff] [blame] | 814 | } |
| 815 | |
keishi@chromium.org | 17c2414 | 2014-08-08 03:39:44 | [diff] [blame] | 816 | select:-internal-list-box:disabled option:checked, |
| 817 | select:-internal-list-box option:checked:disabled { |
| 818 | color: gray !important; |
keishi@chromium.org | fc92dbc | 2014-07-23 10:18:27 | [diff] [blame] | 819 | } |
| 820 | |
keishi@chromium.org | b7ec30d | 2014-12-16 05:43:03 | [diff] [blame] | 821 | select:-internal-list-box hr { |
| 822 | border-style: none; |
| 823 | } |
adele | aa94979 | 2006-07-06 05:47:30 | [diff] [blame] | 824 | |
commit-queue@webkit.org | a8dec30 | 2010-11-05 00:57:50 | [diff] [blame] | 825 | output { |
| 826 | display: inline; |
| 827 | } |
| 828 | |
yael.aharon@nokia.com | cf3f3f5 | 2010-05-15 16:41:06 | [diff] [blame] | 829 | /* meter */ |
| 830 | |
| 831 | meter { |
| 832 | -webkit-appearance: meter; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 833 | box-sizing: border-box; |
shinyak@chromium.org | fcb8079 | 2012-08-15 09:37:32 | [diff] [blame] | 834 | display: inline-block; |
yael.aharon@nokia.com | cf3f3f5 | 2010-05-15 16:41:06 | [diff] [blame] | 835 | height: 1em; |
| 836 | width: 5em; |
| 837 | vertical-align: -0.2em; |
| 838 | } |
| 839 | |
shinyak@chromium.org | fcb8079 | 2012-08-15 09:37:32 | [diff] [blame] | 840 | meter::-webkit-meter-inner-element { |
| 841 | -webkit-appearance: inherit; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 842 | box-sizing: inherit; |
shinyak@chromium.org | fcb8079 | 2012-08-15 09:37:32 | [diff] [blame] | 843 | -webkit-user-modify: read-only !important; |
| 844 | height: 100%; |
| 845 | width: 100%; |
| 846 | } |
| 847 | |
morrita@google.com | c6e4a67 | 2011-04-01 15:59:19 | [diff] [blame] | 848 | meter::-webkit-meter-bar { |
jchaffraix@chromium.org | 9af7198 | 2014-02-04 18:59:24 | [diff] [blame] | 849 | background: linear-gradient(to bottom, #ddd, #eee 20%, #ccc 45%, #ccc 55%, #ddd); |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame] | 850 | height: 100%; |
morrita@google.com | b41d492 | 2011-04-23 23:16:23 | [diff] [blame] | 851 | width: 100%; |
shinyak@chromium.org | 36b95a7 | 2012-07-26 03:10:09 | [diff] [blame] | 852 | -webkit-user-modify: read-only !important; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 853 | box-sizing: border-box; |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 854 | } |
| 855 | |
morrita@google.com | c6e4a67 | 2011-04-01 15:59:19 | [diff] [blame] | 856 | meter::-webkit-meter-optimum-value { |
jchaffraix@chromium.org | 9af7198 | 2014-02-04 18:59:24 | [diff] [blame] | 857 | background: linear-gradient(to bottom, #ad7, #cea 20%, #7a3 45%, #7a3 55%, #ad7); |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame] | 858 | height: 100%; |
shinyak@chromium.org | 36b95a7 | 2012-07-26 03:10:09 | [diff] [blame] | 859 | -webkit-user-modify: read-only !important; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 860 | box-sizing: border-box; |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 861 | } |
| 862 | |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame] | 863 | meter::-webkit-meter-suboptimum-value { |
jchaffraix@chromium.org | 9af7198 | 2014-02-04 18:59:24 | [diff] [blame] | 864 | background: linear-gradient(to bottom, #fe7, #ffc 20%, #db3 45%, #db3 55%, #fe7); |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame] | 865 | height: 100%; |
shinyak@chromium.org | 36b95a7 | 2012-07-26 03:10:09 | [diff] [blame] | 866 | -webkit-user-modify: read-only !important; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 867 | box-sizing: border-box; |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 868 | } |
| 869 | |
morrita@google.com | c6e4a67 | 2011-04-01 15:59:19 | [diff] [blame] | 870 | meter::-webkit-meter-even-less-good-value { |
jchaffraix@chromium.org | 9af7198 | 2014-02-04 18:59:24 | [diff] [blame] | 871 | background: linear-gradient(to bottom, #f77, #fcc 20%, #d44 45%, #d44 55%, #f77); |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame] | 872 | height: 100%; |
shinyak@chromium.org | 36b95a7 | 2012-07-26 03:10:09 | [diff] [blame] | 873 | -webkit-user-modify: read-only !important; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 874 | box-sizing: border-box; |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 875 | } |
| 876 | |
yael.aharon@nokia.com | aae33d5 | 2010-03-15 01:00:36 | [diff] [blame] | 877 | /* progress */ |
| 878 | |
| 879 | progress { |
| 880 | -webkit-appearance: progress-bar; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 881 | box-sizing: border-box; |
yael.aharon@nokia.com | fc26df2 | 2010-03-26 15:42:41 | [diff] [blame] | 882 | display: inline-block; |
| 883 | height: 1em; |
| 884 | width: 10em; |
| 885 | vertical-align: -0.2em; |
yael.aharon@nokia.com | aae33d5 | 2010-03-15 01:00:36 | [diff] [blame] | 886 | } |
| 887 | |
shinyak@chromium.org | 42ebe3a | 2012-08-06 12:00:14 | [diff] [blame] | 888 | progress::-webkit-progress-inner-element { |
| 889 | -webkit-appearance: inherit; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 890 | box-sizing: inherit; |
shinyak@chromium.org | 42ebe3a | 2012-08-06 12:00:14 | [diff] [blame] | 891 | -webkit-user-modify: read-only; |
| 892 | height: 100%; |
| 893 | width: 100%; |
| 894 | } |
| 895 | |
morrita@google.com | 1b3b929 | 2011-04-06 17:03:26 | [diff] [blame] | 896 | progress::-webkit-progress-bar { |
| 897 | background-color: gray; |
| 898 | height: 100%; |
morrita@google.com | b41d492 | 2011-04-23 23:16:23 | [diff] [blame] | 899 | width: 100%; |
shinyak@chromium.org | 36b95a7 | 2012-07-26 03:10:09 | [diff] [blame] | 900 | -webkit-user-modify: read-only !important; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 901 | box-sizing: border-box; |
morrita@google.com | 1b3b929 | 2011-04-06 17:03:26 | [diff] [blame] | 902 | } |
| 903 | |
| 904 | progress::-webkit-progress-value { |
morrita@google.com | d7eb386 | 2010-06-28 11:20:33 | [diff] [blame] | 905 | background-color: green; |
morrita@google.com | 1b3b929 | 2011-04-06 17:03:26 | [diff] [blame] | 906 | height: 100%; |
| 907 | width: 50%; /* should be removed later */ |
shinyak@chromium.org | 36b95a7 | 2012-07-26 03:10:09 | [diff] [blame] | 908 | -webkit-user-modify: read-only !important; |
ojan@chromium.org | 0fe22b7 | 2012-10-03 23:26:10 | [diff] [blame] | 909 | box-sizing: border-box; |
yael.aharon@nokia.com | aae33d5 | 2010-03-15 01:00:36 | [diff] [blame] | 910 | } |
| 911 | |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 912 | /* inline elements */ |
| 913 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 914 | u, ins { |
| 915 | text-decoration: underline |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 916 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 917 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 918 | strong, b { |
commit-queue@webkit.org | f124e879 | 2011-12-21 23:58:04 | [diff] [blame] | 919 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 920 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 921 | |
commit-queue@webkit.org | e2b62ab | 2011-08-29 20:06:52 | [diff] [blame] | 922 | i, cite, em, var, address, dfn { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 923 | font-style: italic |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 924 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 925 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 926 | tt, code, kbd, samp { |
| 927 | font-family: monospace |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 928 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 929 | |
darin | 7816d5d | 2006-03-21 23:52:24 | [diff] [blame] | 930 | pre, xmp, plaintext, listing { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 931 | display: block; |
| 932 | font-family: monospace; |
| 933 | white-space: pre; |
| 934 | margin: 1__qem 0 |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 935 | } |
hyatt | 31ff3c2 | 2005-11-02 08:52:50 | [diff] [blame] | 936 | |
commit-queue@webkit.org | 296f65c | 2010-07-02 19:45:28 | [diff] [blame] | 937 | mark { |
| 938 | background-color: yellow; |
| 939 | color: black |
| 940 | } |
| 941 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 942 | big { |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 943 | font-size: larger |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 944 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 945 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 946 | small { |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 947 | font-size: smaller |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 948 | } |
| 949 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 950 | s, strike, del { |
| 951 | text-decoration: line-through |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 952 | } |
| 953 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 954 | sub { |
| 955 | vertical-align: sub; |
| 956 | font-size: smaller |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 957 | } |
| 958 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 959 | sup { |
| 960 | vertical-align: super; |
| 961 | font-size: smaller |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 962 | } |
| 963 | |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 964 | nobr { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 965 | white-space: nowrap |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 966 | } |
| 967 | |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 968 | /* states */ |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 969 | |
| 970 | :focus { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 971 | outline: auto 5px -webkit-focus-ring-color |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 972 | } |
| 973 | |
hyatt | 30d2200 | 2007-01-12 06:46:27 | [diff] [blame] | 974 | /* Read-only text fields do not show a focus ring but do still receive focus */ |
| 975 | html:focus, body:focus, input[readonly]:focus { |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 976 | outline: none |
| 977 | } |
commit-queue@webkit.org | 9d33c7d | 2011-06-15 15:09:29 | [diff] [blame] | 978 | |
dcheng@chromium.org | 73deabb | 2015-09-02 18:28:56 | [diff] [blame] | 979 | embed:focus, iframe:focus, object:focus { |
commit-queue@webkit.org | 9d33c7d | 2011-06-15 15:09:29 | [diff] [blame] | 980 | outline: none |
| 981 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 982 | |
mkwst@chromium.org | f1f9bcd | 2014-02-27 10:32:44 | [diff] [blame] | 983 | input:focus, textarea:focus, keygen:focus, select:focus { |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 984 | outline-offset: -2px |
| 985 | } |
| 986 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 987 | input[type="button" i]:focus, |
| 988 | input[type="checkbox" i]:focus, |
| 989 | input[type="file" i]:focus, |
| 990 | input[type="hidden" i]:focus, |
| 991 | input[type="image" i]:focus, |
| 992 | input[type="radio" i]:focus, |
| 993 | input[type="reset" i]:focus, |
| 994 | input[type="search" i]:focus, |
| 995 | input[type="submit" i]:focus, |
| 996 | input[type="file" i]:focus::-webkit-file-upload-button { |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 997 | outline-offset: 0 |
| 998 | } |
hyatt | 30d2200 | 2007-01-12 06:46:27 | [diff] [blame] | 999 | |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 1000 | a:-webkit-any-link { |
| 1001 | color: -webkit-link; |
hyatt | 2157335 | 2005-07-29 23:02:45 | [diff] [blame] | 1002 | text-decoration: underline; |
mitz@apple.com | 599e57b | 2007-11-13 22:14:04 | [diff] [blame] | 1003 | cursor: auto; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 1004 | } |
| 1005 | |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 1006 | a:-webkit-any-link:active { |
| 1007 | color: -webkit-activelink |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 1008 | } |
| 1009 | |
rolandsteiner@chromium.org | 34a7b14 | 2009-11-02 01:52:25 | [diff] [blame] | 1010 | /* HTML5 ruby elements */ |
| 1011 | |
rolandsteiner@chromium.org | 03de915 | 2009-11-20 05:44:06 | [diff] [blame] | 1012 | ruby, rt { |
rolandsteiner@chromium.org | 7adc98e | 2010-02-03 05:57:13 | [diff] [blame] | 1013 | text-indent: 0; /* blocks used for ruby rendering should not trigger this */ |
hyatt@apple.com | 99c8e78 | 2010-11-19 00:43:29 | [diff] [blame] | 1014 | } |
| 1015 | |
| 1016 | rt { |
rolandsteiner@chromium.org | 7adc98e | 2010-02-03 05:57:13 | [diff] [blame] | 1017 | line-height: normal; |
mitz@apple.com | f2029f6 | 2011-01-13 09:50:33 | [diff] [blame] | 1018 | -webkit-text-emphasis: none; |
rolandsteiner@chromium.org | 03de915 | 2009-11-20 05:44:06 | [diff] [blame] | 1019 | } |
| 1020 | |
rolandsteiner@chromium.org | 34a7b14 | 2009-11-02 01:52:25 | [diff] [blame] | 1021 | ruby > rt { |
| 1022 | display: block; |
mitz@apple.com | 2c547fd | 2011-02-04 21:18:24 | [diff] [blame] | 1023 | font-size: 50%; |
commit-queue@webkit.org | 916decc | 2012-10-07 14:22:02 | [diff] [blame] | 1024 | text-align: start; |
rolandsteiner@chromium.org | 34a7b14 | 2009-11-02 01:52:25 | [diff] [blame] | 1025 | } |
| 1026 | |
| 1027 | ruby > rp { |
| 1028 | display: none; |
| 1029 | } |
| 1030 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 1031 | /* other elements */ |
| 1032 | |
| 1033 | noframes { |
| 1034 | display: none |
| 1035 | } |
| 1036 | |
| 1037 | frameset, frame { |
| 1038 | display: block |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 1039 | } |
| 1040 | |
hyatt | f750569 | 2007-03-18 09:21:21 | [diff] [blame] | 1041 | frameset { |
| 1042 | border-color: inherit |
| 1043 | } |
| 1044 | |
abarth@chromium.org | 5ed7ab8 | 2014-01-24 22:08:36 | [diff] [blame] | 1045 | iframe { |
hyatt | 0cf370d | 2007-03-18 09:33:37 | [diff] [blame] | 1046 | border: 2px inset |
| 1047 | } |
| 1048 | |
luiz@webkit.org | 1524baf | 2010-12-06 01:14:39 | [diff] [blame] | 1049 | details { |
| 1050 | display: block |
| 1051 | } |
| 1052 | |
| 1053 | summary { |
| 1054 | display: block |
| 1055 | } |
| 1056 | |
morrita@google.com | 2985007 | 2011-04-15 21:56:48 | [diff] [blame] | 1057 | summary::-webkit-details-marker { |
| 1058 | display: inline-block; |
| 1059 | width: 0.66em; |
| 1060 | height: 0.66em; |
habib.virji@samsung.com | 1316965 | 2014-06-12 10:52:54 | [diff] [blame] | 1061 | -webkit-margin-end: 0.4em; |
morrita@google.com | 2985007 | 2011-04-15 21:56:48 | [diff] [blame] | 1062 | } |
| 1063 | |
rafaelw@chromium.org | 167268b | 2012-12-04 03:09:49 | [diff] [blame] | 1064 | template { |
| 1065 | display: none |
| 1066 | } |
rafaelw@chromium.org | 167268b | 2012-12-04 03:09:49 | [diff] [blame] | 1067 | |
rniwa@webkit.org | 52d71ed | 2011-11-28 19:19:37 | [diff] [blame] | 1068 | bdi, output { |
eric@webkit.org | ec4afb2 | 2011-09-09 00:34:59 | [diff] [blame] | 1069 | unicode-bidi: -webkit-isolate; |
| 1070 | } |
| 1071 | |
rniwa@webkit.org | 52d71ed | 2011-11-28 19:19:37 | [diff] [blame] | 1072 | bdo { |
| 1073 | unicode-bidi: bidi-override; |
| 1074 | } |
| 1075 | |
fs@opera.com | 5db3ef3 | 2014-08-01 14:35:13 | [diff] [blame] | 1076 | textarea[dir=auto i] { |
igor.o@sisa.samsung.com | ad5ac74 | 2013-08-24 00:49:23 | [diff] [blame] | 1077 | unicode-bidi: -webkit-plaintext; |
| 1078 | } |
| 1079 | |
tkent@chromium.org | d7f6594 | 2014-09-10 07:12:19 | [diff] [blame] | 1080 | dialog:not([open]) { |
| 1081 | display: none |
| 1082 | } |
| 1083 | |
| 1084 | dialog { |
| 1085 | position: absolute; |
| 1086 | left: 0; |
| 1087 | right: 0; |
| 1088 | width: -webkit-fit-content; |
| 1089 | height: -webkit-fit-content; |
| 1090 | margin: auto; |
| 1091 | border: solid; |
| 1092 | padding: 1em; |
| 1093 | background: white; |
| 1094 | color: black |
| 1095 | } |
| 1096 | |
| 1097 | dialog::backdrop { |
| 1098 | position: fixed; |
| 1099 | top: 0; |
| 1100 | right: 0; |
| 1101 | bottom: 0; |
| 1102 | left: 0; |
| 1103 | background: rgba(0,0,0,0.1) |
| 1104 | } |
| 1105 | |
yuzo@google.com | 06721d0 | 2010-06-16 03:23:12 | [diff] [blame] | 1106 | /* page */ |
| 1107 | |
| 1108 | @page { |
| 1109 | /* FIXME: Define the right default values for page properties. */ |
yuzo@google.com | f9c1d52 | 2010-06-23 07:30:04 | [diff] [blame] | 1110 | size: auto; |
yuzo@google.com | c04f496 | 2010-06-28 01:59:51 | [diff] [blame] | 1111 | margin: auto; |
| 1112 | padding: 0px; |
| 1113 | border-width: 0px; |
yuzo@google.com | 06721d0 | 2010-06-16 03:23:12 | [diff] [blame] | 1114 | } |
| 1115 | |
mstensho@opera.com | 55b88ca | 2015-05-19 13:26:27 | [diff] [blame] | 1116 | /* Disable multicol in printing, since it's not implemented properly. See crbug.com/99358 */ |
| 1117 | |
| 1118 | @media print { |
| 1119 | * { -webkit-columns: auto !important; } |
| 1120 | } |
| 1121 | |
tkent@chromium.org | 1b5d81d | 2011-05-20 12:26:47 | [diff] [blame] | 1122 | /* noscript is handled internally, as it depends on settings. */ |
| 1123 | |