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 | |
| 62 | p { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 63 | display: block; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 64 | -webkit-margin-before: 1__qem; |
| 65 | -webkit-margin-after: 1__qem; |
| 66 | -webkit-margin-start: 0; |
| 67 | -webkit-margin-end: 0; |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | div { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 71 | display: block |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 72 | } |
| 73 | |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 74 | layer { |
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 | |
tkent@chromium.org | e9b5453 | 2010-03-09 06:24:57 | [diff] [blame] | 78 | article, aside, footer, header, hgroup, nav, section { |
mjs@apple.com | fa45572 | 2009-08-19 05:09:35 | [diff] [blame] | 79 | display: block |
| 80 | } |
| 81 | |
hyatt | f9dafda | 2003-10-29 08:57:20 | [diff] [blame] | 82 | marquee { |
| 83 | display: inline-block; |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 84 | overflow: -webkit-marquee |
hyatt | f9dafda | 2003-10-29 08:57:20 | [diff] [blame] | 85 | } |
| 86 | |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 87 | address { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 88 | display: block |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 89 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 90 | |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 91 | blockquote { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 92 | display: block; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 93 | -webkit-margin-before: 1__qem; |
| 94 | -webkit-margin-after: 1em; |
| 95 | -webkit-margin-start: 40px; |
| 96 | -webkit-margin-end: 40px; |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 97 | } |
| 98 | |
commit-queue@webkit.org | f10e149 | 2010-12-09 16:40:53 | [diff] [blame] | 99 | figcaption { |
| 100 | display: block |
| 101 | } |
| 102 | |
| 103 | figure { |
| 104 | display: block; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 105 | -webkit-margin-before: 1em; |
| 106 | -webkit-margin-after: 1em; |
| 107 | -webkit-margin-start: 40px; |
| 108 | -webkit-margin-end: 40px; |
commit-queue@webkit.org | f10e149 | 2010-12-09 16:40:53 | [diff] [blame] | 109 | } |
| 110 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 111 | q { |
| 112 | display: inline |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 113 | } |
| 114 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 115 | q:before { |
carol.szabo@nokia.com | 28b08b2 | 2011-03-02 19:34:00 | [diff] [blame] | 116 | content: open-quote; |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 117 | } |
| 118 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 119 | q:after { |
carol.szabo@nokia.com | 28b08b2 | 2011-03-02 19:34:00 | [diff] [blame] | 120 | content: close-quote; |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 121 | } |
| 122 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 123 | center { |
| 124 | display: block; |
| 125 | /* special centering to be able to emulate the html4/netscape behaviour */ |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 126 | text-align: -webkit-center |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 127 | } |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 128 | |
| 129 | hr { |
| 130 | display: block; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 131 | -webkit-margin-before: 0.5em; |
| 132 | -webkit-margin-after: 0.5em; |
| 133 | -webkit-margin-start: auto; |
| 134 | -webkit-margin-end: auto; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 135 | border-style: inset; |
| 136 | border-width: 1px |
hyatt | 94f0a53 | 2003-11-11 01:03:15 | [diff] [blame] | 137 | } |
| 138 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 139 | map { |
| 140 | display: inline |
| 141 | } |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 142 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 143 | /* heading elements */ |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 144 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 145 | h1 { |
| 146 | display: block; |
| 147 | font-size: 2em; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 148 | -webkit-margin-before: 0.67__qem; |
| 149 | -webkit-margin-after: 0.67em; |
| 150 | -webkit-margin-start: 0; |
| 151 | -webkit-margin-end: 0; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 152 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 153 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 154 | |
tkent@chromium.org | eb3adc4 | 2011-03-30 07:00:25 | [diff] [blame] | 155 | :-webkit-any(article,aside,nav,section) h1 { |
| 156 | font-size: 1.5em; |
| 157 | -webkit-margin-before: 0.83__qem; |
| 158 | -webkit-margin-after: 0.83em; |
| 159 | } |
| 160 | |
| 161 | :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 { |
| 162 | font-size: 1.17em; |
| 163 | -webkit-margin-before: 1__qem; |
| 164 | -webkit-margin-after: 1em; |
| 165 | } |
| 166 | |
| 167 | :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 { |
| 168 | font-size: 1.00em; |
| 169 | -webkit-margin-before: 1.33__qem; |
| 170 | -webkit-margin-after: 1.33em; |
| 171 | } |
| 172 | |
| 173 | :-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 { |
| 174 | font-size: .83em; |
| 175 | -webkit-margin-before: 1.67__qem; |
| 176 | -webkit-margin-after: 1.67em; |
| 177 | } |
| 178 | |
| 179 | :-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 { |
| 180 | font-size: .67em; |
| 181 | -webkit-margin-before: 2.33__qem; |
| 182 | -webkit-margin-after: 2.33em; |
| 183 | } |
| 184 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 185 | h2 { |
| 186 | display: block; |
| 187 | font-size: 1.5em; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 188 | -webkit-margin-before: 0.83__qem; |
| 189 | -webkit-margin-after: 0.83em; |
| 190 | -webkit-margin-start: 0; |
| 191 | -webkit-margin-end: 0; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 192 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 193 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 194 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 195 | h3 { |
| 196 | display: block; |
| 197 | font-size: 1.17em; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 198 | -webkit-margin-before: 1__qem; |
| 199 | -webkit-margin-after: 1em; |
| 200 | -webkit-margin-start: 0; |
| 201 | -webkit-margin-end: 0; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 202 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 203 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 204 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 205 | h4 { |
| 206 | display: block; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 207 | -webkit-margin-before: 1.33__qem; |
| 208 | -webkit-margin-after: 1.33em; |
| 209 | -webkit-margin-start: 0; |
| 210 | -webkit-margin-end: 0; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 211 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 212 | } |
| 213 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 214 | h5 { |
| 215 | display: block; |
| 216 | font-size: .83em; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 217 | -webkit-margin-before: 1.67__qem; |
| 218 | -webkit-margin-after: 1.67em; |
| 219 | -webkit-margin-start: 0; |
| 220 | -webkit-margin-end: 0; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 221 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 222 | } |
| 223 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 224 | h6 { |
| 225 | display: block; |
| 226 | font-size: .67em; |
hyatt@apple.com | e5f7e41 | 2011-01-26 23:10:57 | [diff] [blame] | 227 | -webkit-margin-before: 2.33__qem; |
| 228 | -webkit-margin-after: 2.33em; |
| 229 | -webkit-margin-start: 0; |
| 230 | -webkit-margin-end: 0; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 231 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 232 | } |
| 233 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 234 | /* tables */ |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 235 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 236 | table { |
| 237 | display: table; |
| 238 | border-collapse: separate; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 239 | border-spacing: 2px; |
| 240 | border-color: gray |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 241 | } |
hyatt | 97bb4fe | 2002-12-15 07:39:56 | [diff] [blame] | 242 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 243 | thead { |
| 244 | display: table-header-group; |
hyatt | 66b64e1 | 2002-12-20 01:50:10 | [diff] [blame] | 245 | vertical-align: middle; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 246 | border-color: inherit |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 247 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 248 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 249 | tbody { |
| 250 | display: table-row-group; |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 251 | vertical-align: middle; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 252 | border-color: inherit |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 253 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 254 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 255 | tfoot { |
| 256 | display: table-footer-group; |
hyatt | 66b64e1 | 2002-12-20 01:50:10 | [diff] [blame] | 257 | vertical-align: middle; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 258 | border-color: inherit |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 259 | } |
| 260 | |
darin | aae2ca5 | 2007-05-01 19:59:53 | [diff] [blame] | 261 | /* for tables without table section elements (can happen with XHTML or dynamically created tables) */ |
| 262 | table > tr { |
| 263 | vertical-align: middle; |
| 264 | } |
| 265 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 266 | col { |
| 267 | display: table-column |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 268 | } |
| 269 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 270 | colgroup { |
| 271 | display: table-column-group |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 272 | } |
| 273 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 274 | tr { |
| 275 | display: table-row; |
| 276 | vertical-align: inherit; |
| 277 | border-color: inherit |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 278 | } |
| 279 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 280 | td, th { |
| 281 | display: table-cell; |
| 282 | vertical-align: inherit |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 283 | } |
| 284 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 285 | th { |
| 286 | font-weight: bold |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 287 | } |
| 288 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 289 | caption { |
| 290 | display: table-caption; |
hyatt | b61521c | 2006-05-08 08:19:53 | [diff] [blame] | 291 | text-align: -webkit-center |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 292 | } |
| 293 | |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 294 | /* lists */ |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 295 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 296 | ul, menu, dir { |
| 297 | display: block; |
| 298 | list-style-type: disc; |
hyatt@apple.com | a36b0aac | 2010-11-10 01:46:10 | [diff] [blame] | 299 | -webkit-margin-before: 1__qem; |
| 300 | -webkit-margin-after: 1em; |
| 301 | -webkit-margin-start: 0; |
| 302 | -webkit-margin-end: 0; |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 303 | -webkit-padding-start: 40px |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 304 | } |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 305 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 306 | ol { |
| 307 | display: block; |
| 308 | list-style-type: decimal; |
hyatt@apple.com | a36b0aac | 2010-11-10 01:46:10 | [diff] [blame] | 309 | -webkit-margin-before: 1__qem; |
| 310 | -webkit-margin-after: 1em; |
| 311 | -webkit-margin-start: 0; |
| 312 | -webkit-margin-end: 0; |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 313 | -webkit-padding-start: 40px |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 314 | } |
| 315 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 316 | li { |
| 317 | display: list-item |
| 318 | } |
| 319 | |
| 320 | ul ul, ol ul { |
| 321 | list-style-type: circle |
| 322 | } |
| 323 | |
| 324 | ol ol ul, ol ul ul, ul ol ul, ul ul ul { |
| 325 | list-style-type: square |
| 326 | } |
| 327 | |
| 328 | dd { |
| 329 | display: block; |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 330 | -webkit-margin-start: 40px |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 331 | } |
| 332 | |
| 333 | dl { |
| 334 | display: block; |
hyatt@apple.com | a36b0aac | 2010-11-10 01:46:10 | [diff] [blame] | 335 | -webkit-margin-before: 1__qem; |
| 336 | -webkit-margin-after: 1em; |
| 337 | -webkit-margin-start: 0; |
| 338 | -webkit-margin-end: 0; |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 339 | } |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 340 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 341 | dt { |
| 342 | display: block |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 343 | } |
hyatt | ed84c1c | 2004-04-29 01:19:04 | [diff] [blame] | 344 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 345 | ol ul, ul ol, ul ul, ol ol { |
hyatt@apple.com | a36b0aac | 2010-11-10 01:46:10 | [diff] [blame] | 346 | -webkit-margin-before: 0; |
| 347 | -webkit-margin-after: 0 |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 348 | } |
| 349 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 350 | /* form elements */ |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 351 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 352 | form { |
| 353 | display: block; |
morrita@google.com | 4646de8 | 2011-02-07 01:40:17 | [diff] [blame] | 354 | margin-top: 0__qem; |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 355 | } |
| 356 | |
hyatt | 0de4795 | 2006-09-13 06:23:56 | [diff] [blame] | 357 | label { |
| 358 | cursor: default; |
hyatt | 0de4795 | 2006-09-13 06:23:56 | [diff] [blame] | 359 | } |
| 360 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 361 | legend { |
mitz@apple.com | 177c28f | 2009-03-09 22:20:50 | [diff] [blame] | 362 | display: block; |
hyatt@apple.com | 9136a00 | 2010-10-06 12:10:02 | [diff] [blame] | 363 | -webkit-padding-start: 2px; |
| 364 | -webkit-padding-end: 2px; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 365 | border: none |
hyatt | 14633db | 2003-05-21 07:00:43 | [diff] [blame] | 366 | } |
| 367 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 368 | fieldset { |
hyatt | 14633db | 2003-05-21 07:00:43 | [diff] [blame] | 369 | display: block; |
hyatt@apple.com | 9136a00 | 2010-10-06 12:10:02 | [diff] [blame] | 370 | -webkit-margin-start: 2px; |
| 371 | -webkit-margin-end: 2px; |
| 372 | -webkit-padding-before: 0.35em; |
| 373 | -webkit-padding-start: 0.75em; |
| 374 | -webkit-padding-end: 0.75em; |
| 375 | -webkit-padding-after: 0.625em; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 376 | border: 2px groove ThreeDFace |
hyatt | 14633db | 2003-05-21 07:00:43 | [diff] [blame] | 377 | } |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 378 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 379 | button { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 380 | -webkit-appearance: button; |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 381 | } |
| 382 | |
hyatt@apple.com | 4796776 | 2010-09-22 22:11:01 | [diff] [blame] | 383 | /* Form controls don't go vertical. */ |
| 384 | input, textarea, keygen, select, button, isindex, meter, progress { |
| 385 | -webkit-block-flow: tb !important; |
| 386 | } |
| 387 | |
hyatt@apple.com | 455fe5a | 2009-06-22 23:24:23 | [diff] [blame] | 388 | input, textarea, keygen, select, button, isindex, datagrid { |
hyatt | 8190538 | 2003-11-17 20:38:09 | [diff] [blame] | 389 | margin: 0__qem; |
hyatt | 2ea4801 | 2006-08-15 22:37:51 | [diff] [blame] | 390 | font: -webkit-small-control; |
hyatt | 70db89e | 2005-07-20 00:45:49 | [diff] [blame] | 391 | color: initial; |
hyatt | 1846230 | 2005-10-26 06:08:03 | [diff] [blame] | 392 | letter-spacing: normal; |
| 393 | word-spacing: normal; |
| 394 | line-height: normal; |
| 395 | text-transform: none; |
| 396 | text-indent: 0; |
hyatt | 45f78ae | 2007-07-16 21:02:02 | [diff] [blame] | 397 | text-shadow: none; |
hyatt | 70db89e | 2005-07-20 00:45:49 | [diff] [blame] | 398 | display: inline-block; |
adele | 389a5c3 | 2007-04-06 00:42:03 | [diff] [blame] | 399 | text-align: -webkit-auto; |
hyatt | ea18783 | 2002-11-12 21:44:52 | [diff] [blame] | 400 | } |
| 401 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 402 | input[type="hidden"] { |
| 403 | display: none |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 404 | } |
| 405 | |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 406 | input, input[type="password"], input[type="search"], isindex { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 407 | -webkit-appearance: textfield; |
adele | e843f09 | 2006-03-30 01:49:57 | [diff] [blame] | 408 | padding: 1px; |
| 409 | background-color: white; |
| 410 | border: 2px inset; |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 411 | -webkit-rtl-ordering: logical; |
adele | 34e1547 | 2006-04-25 00:30:13 | [diff] [blame] | 412 | -webkit-user-select: text; |
adele | 11eb9db | 2007-04-05 21:26:09 | [diff] [blame] | 413 | cursor: auto; |
adele | e843f09 | 2006-03-30 01:49:57 | [diff] [blame] | 414 | } |
| 415 | |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 416 | input[type="search"] { |
| 417 | -webkit-appearance: searchfield; |
darin | 595a349 | 2007-04-23 08:27:18 | [diff] [blame] | 418 | -webkit-box-sizing: border-box; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 419 | } |
| 420 | |
| 421 | input[type="search"]::-webkit-search-cancel-button { |
| 422 | -webkit-appearance: searchfield-cancel-button; |
adele@apple.com | 0fbda8c | 2008-09-03 16:57:58 | [diff] [blame] | 423 | display: inline-block; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 424 | } |
| 425 | |
| 426 | input[type="search"]::-webkit-search-decoration { |
| 427 | -webkit-appearance: searchfield-decoration; |
adele@apple.com | 0fbda8c | 2008-09-03 16:57:58 | [diff] [blame] | 428 | display: inline-block; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 429 | } |
| 430 | |
| 431 | input[type="search"]::-webkit-search-results-decoration { |
| 432 | -webkit-appearance: searchfield-results-decoration; |
adele@apple.com | 0fbda8c | 2008-09-03 16:57:58 | [diff] [blame] | 433 | display: inline-block; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 434 | } |
| 435 | |
| 436 | input[type="search"]::-webkit-search-results-button { |
| 437 | -webkit-appearance: searchfield-results-button; |
adele@apple.com | 0fbda8c | 2008-09-03 16:57:58 | [diff] [blame] | 438 | display: inline-block; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 439 | } |
| 440 | |
eric@webkit.org | 923f704 | 2009-10-05 18:05:36 | [diff] [blame] | 441 | input::-webkit-input-list-button { |
| 442 | -webkit-appearance: list-button; |
| 443 | display: inline-block; |
| 444 | } |
| 445 | |
eric@webkit.org | 1f8902b | 2009-12-21 04:57:59 | [diff] [blame] | 446 | input::-webkit-inner-spin-button { |
| 447 | -webkit-appearance: inner-spin-button; |
| 448 | display: inline-block; |
tkent@chromium.org | fce8bf9 | 2010-04-30 08:45:49 | [diff] [blame] | 449 | -webkit-user-select: none; |
eric@webkit.org | 1f8902b | 2009-12-21 04:57:59 | [diff] [blame] | 450 | } |
| 451 | |
| 452 | input::-webkit-outer-spin-button { |
| 453 | -webkit-appearance: outer-spin-button; |
| 454 | display: inline-block; |
| 455 | margin-left: 2px; |
tkent@chromium.org | fce8bf9 | 2010-04-30 08:45:49 | [diff] [blame] | 456 | -webkit-user-select: none; |
eric@webkit.org | 1f8902b | 2009-12-21 04:57:59 | [diff] [blame] | 457 | } |
| 458 | |
jorlow@chromium.org | 2082a6d | 2010-06-24 10:40:28 | [diff] [blame] | 459 | input::-webkit-input-speech-button { |
satish@chromium.org | ec9a80a | 2010-09-29 13:45:15 | [diff] [blame] | 460 | -webkit-appearance: -webkit-input-speech-button; |
jorlow@chromium.org | 2082a6d | 2010-06-24 10:40:28 | [diff] [blame] | 461 | display: inline-block; |
| 462 | } |
| 463 | |
morrita@google.com | 4646de8 | 2011-02-07 01:40:17 | [diff] [blame] | 464 | keygen, select { |
| 465 | -webkit-border-radius: 5px; |
| 466 | } |
| 467 | |
| 468 | keygen::-webkit-keygen-select { |
| 469 | margin: 0px; |
| 470 | } |
| 471 | |
adele | 2d542cb | 2006-05-17 23:32:38 | [diff] [blame] | 472 | textarea { |
adele | 6401bff | 2006-06-21 07:23:06 | [diff] [blame] | 473 | -webkit-appearance: textarea; |
| 474 | background-color: white; |
adele | 3a2e043 | 2006-06-16 18:27:54 | [diff] [blame] | 475 | border: 1px solid; |
adele | 2d542cb | 2006-05-17 23:32:38 | [diff] [blame] | 476 | -webkit-rtl-ordering: logical; |
| 477 | -webkit-user-select: text; |
| 478 | -webkit-box-orient: vertical; |
hyatt | 1c78686 | 2006-07-19 00:16:34 | [diff] [blame] | 479 | resize: auto; |
adele | 11eb9db | 2007-04-05 21:26:09 | [diff] [blame] | 480 | cursor: auto; |
ojan@chromium.org | 0484dd0 | 2009-04-29 20:31:53 | [diff] [blame] | 481 | padding: 2px; |
levin@chromium.org | fb47c84 | 2009-07-16 05:32:39 | [diff] [blame] | 482 | white-space: pre-wrap; |
| 483 | word-wrap: break-word; |
adele | 2d542cb | 2006-05-17 23:32:38 | [diff] [blame] | 484 | } |
| 485 | |
eric@webkit.org | 0b2155d | 2009-08-24 08:28:51 | [diff] [blame] | 486 | input::-webkit-input-placeholder, isindex::-webkit-input-placeholder, textarea::-webkit-input-placeholder { |
adele@apple.com | 81be3ce | 2008-09-30 23:21:50 | [diff] [blame] | 487 | color: darkGray; |
| 488 | } |
| 489 | |
adele | ceb356d | 2006-08-26 00:33:22 | [diff] [blame] | 490 | input[type="password"] { |
adele | ef0b4ac | 2006-08-30 18:32:40 | [diff] [blame] | 491 | -webkit-text-security: disc !important; |
adele | ceb356d | 2006-08-26 00:33:22 | [diff] [blame] | 492 | } |
| 493 | |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 494 | input[type="hidden"], input[type="image"], input[type="file"] { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 495 | -webkit-appearance: initial; |
adele | e843f09 | 2006-03-30 01:49:57 | [diff] [blame] | 496 | padding: initial; |
| 497 | background-color: initial; |
| 498 | border: initial; |
| 499 | } |
| 500 | |
aroben | 226ef41 | 2006-09-12 19:59:32 | [diff] [blame] | 501 | input[type="file"] { |
| 502 | -webkit-box-align: baseline; |
simon.fraser@apple.com | e8e1abb | 2008-10-03 00:43:39 | [diff] [blame] | 503 | text-align: start !important; |
aroben | 226ef41 | 2006-09-12 19:59:32 | [diff] [blame] | 504 | } |
| 505 | |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 506 | input:-webkit-autofill { |
adele | a464e9f | 2006-04-13 01:50:04 | [diff] [blame] | 507 | background-color: #FAFFBD !important; |
| 508 | background-image:none !important; |
commit-queue@webkit.org | 9940484 | 2011-03-15 18:02:55 | [diff] [blame] | 509 | color: #000000 !important; |
adele | a464e9f | 2006-04-13 01:50:04 | [diff] [blame] | 510 | } |
| 511 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 512 | input[type="radio"], input[type="checkbox"] { |
hyatt | 2157335 | 2005-07-29 23:02:45 | [diff] [blame] | 513 | margin: 3px 0.5ex; |
adele | e843f09 | 2006-03-30 01:49:57 | [diff] [blame] | 514 | padding: initial; |
| 515 | background-color: initial; |
| 516 | border: initial; |
hyatt | 2157335 | 2005-07-29 23:02:45 | [diff] [blame] | 517 | } |
| 518 | |
aroben | 226ef41 | 2006-09-12 19:59:32 | [diff] [blame] | 519 | input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 520 | -webkit-appearance: push-button; |
hyatt | 1846230 | 2005-10-26 06:08:03 | [diff] [blame] | 521 | white-space: pre |
hyatt | f5b9a82 | 2005-10-21 21:27:51 | [diff] [blame] | 522 | } |
| 523 | |
aroben | 226ef41 | 2006-09-12 19:59:32 | [diff] [blame] | 524 | input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 525 | -webkit-box-align: center; |
hyatt | 1846230 | 2005-10-26 06:08:03 | [diff] [blame] | 526 | text-align: center; |
hyatt | 969dc1e | 2005-10-22 18:19:27 | [diff] [blame] | 527 | cursor: default; |
| 528 | color: ButtonText; |
hyatt | cc278a4 | 2005-10-28 07:03:26 | [diff] [blame] | 529 | padding: 2px 6px 3px 6px; |
| 530 | border: 2px outset ButtonFace; |
hyatt | b265025 | 2006-05-08 08:17:07 | [diff] [blame] | 531 | background-color: ButtonFace; |
darin | 595a349 | 2007-04-23 08:27:18 | [diff] [blame] | 532 | -webkit-box-sizing: border-box |
hyatt | 969dc1e | 2005-10-22 18:19:27 | [diff] [blame] | 533 | } |
| 534 | |
adele | 832cc33 | 2006-11-16 01:42:28 | [diff] [blame] | 535 | input[type="range"] { |
| 536 | -webkit-appearance: slider-horizontal; |
| 537 | padding: initial; |
| 538 | border: initial; |
adele | 832cc33 | 2006-11-16 01:42:28 | [diff] [blame] | 539 | margin: 2px; |
| 540 | } |
| 541 | |
| 542 | input[type="range"]::-webkit-slider-thumb { |
| 543 | -webkit-appearance: sliderthumb-horizontal; |
dglazkov@chromium.org | b6ebe4e | 2011-01-11 21:05:33 | [diff] [blame] | 544 | display: block; |
adele | 832cc33 | 2006-11-16 01:42:28 | [diff] [blame] | 545 | } |
| 546 | |
hyatt@apple.com | 455fe5a | 2009-06-22 23:24:23 | [diff] [blame] | 547 | input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled, |
| 548 | input[type="file"]:disabled::-webkit-file-upload-button, button:disabled, |
| 549 | select:disabled, keygen:disabled, optgroup:disabled, option:disabled, datagrid:disabled { |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 550 | color: GrayText |
hyatt | f5b9a82 | 2005-10-21 21:27:51 | [diff] [blame] | 551 | } |
| 552 | |
weinig | 01f4fe9 | 2007-01-21 17:05:13 | [diff] [blame] | 553 | input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]:active::-webkit-file-upload-button, button:active { |
hyatt | cc278a4 | 2005-10-28 07:03:26 | [diff] [blame] | 554 | border-style: inset |
| 555 | } |
| 556 | |
weinig | 01f4fe9 | 2007-01-21 17:05:13 | [diff] [blame] | 557 | input[type="button"]:active:disabled, input[type="submit"]:active:disabled, input[type="reset"]:active:disabled, input[type="file"]:active:disabled::-webkit-file-upload-button, button:active:disabled { |
hyatt | cc278a4 | 2005-10-28 07:03:26 | [diff] [blame] | 558 | border-style: outset |
| 559 | } |
| 560 | |
adele | aa94979 | 2006-07-06 05:47:30 | [diff] [blame] | 561 | area, param { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 562 | display: none |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 563 | } |
| 564 | |
hyatt | 70db89e | 2005-07-20 00:45:49 | [diff] [blame] | 565 | input[type="checkbox"] { |
hyatt | b265025 | 2006-05-08 08:17:07 | [diff] [blame] | 566 | -webkit-appearance: checkbox; |
darin | 595a349 | 2007-04-23 08:27:18 | [diff] [blame] | 567 | -webkit-box-sizing: border-box; |
hyatt | 70db89e | 2005-07-20 00:45:49 | [diff] [blame] | 568 | } |
| 569 | |
hyatt | 4da232a | 2005-08-08 21:12:02 | [diff] [blame] | 570 | input[type="radio"] { |
hyatt | b265025 | 2006-05-08 08:17:07 | [diff] [blame] | 571 | -webkit-appearance: radio; |
darin | 595a349 | 2007-04-23 08:27:18 | [diff] [blame] | 572 | -webkit-box-sizing: border-box; |
hyatt | b265025 | 2006-05-08 08:17:07 | [diff] [blame] | 573 | } |
| 574 | |
morrita@google.com | 4646de8 | 2011-02-07 01:40:17 | [diff] [blame] | 575 | select { |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 576 | -webkit-appearance: menulist; |
darin | 595a349 | 2007-04-23 08:27:18 | [diff] [blame] | 577 | -webkit-box-sizing: border-box; |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 578 | -webkit-box-align: center; |
bdash | f448ccd | 2007-04-12 04:45:48 | [diff] [blame] | 579 | border: 1px solid; |
bdash | f448ccd | 2007-04-12 04:45:48 | [diff] [blame] | 580 | white-space: pre; |
ap | 0e96bcc | 2006-07-24 16:21:36 | [diff] [blame] | 581 | -webkit-rtl-ordering: logical; |
adele | c15bc25 | 2006-08-25 23:44:05 | [diff] [blame] | 582 | color: black; |
adele | c15bc25 | 2006-08-25 23:44:05 | [diff] [blame] | 583 | background-color: white; |
adele | 11eb9db | 2007-04-05 21:26:09 | [diff] [blame] | 584 | cursor: default; |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 585 | } |
| 586 | |
| 587 | select[size], |
| 588 | select[multiple], |
| 589 | select[size][multiple] { |
adele | d62c9ce | 2006-09-29 23:13:49 | [diff] [blame] | 590 | -webkit-appearance: listbox; |
bdash | f448ccd | 2007-04-12 04:45:48 | [diff] [blame] | 591 | -webkit-box-align: start; |
adele | d62c9ce | 2006-09-29 23:13:49 | [diff] [blame] | 592 | border: 1px inset gray; |
| 593 | -webkit-border-radius: initial; |
| 594 | white-space: initial; |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 595 | } |
kdecker | 0c25f70 | 2007-03-06 22:38:17 | [diff] [blame] | 596 | |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 597 | select[size="0"], |
| 598 | select[size="1"] { |
| 599 | -webkit-appearance: menulist; |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 600 | -webkit-box-align: center; |
adele | c15bc25 | 2006-08-25 23:44:05 | [diff] [blame] | 601 | border: 1px solid; |
| 602 | -webkit-border-radius: 5px; |
bdash | f448ccd | 2007-04-12 04:45:48 | [diff] [blame] | 603 | white-space: pre; |
hyatt | 4da232a | 2005-08-08 21:12:02 | [diff] [blame] | 604 | } |
| 605 | |
adele | aa94979 | 2006-07-06 05:47:30 | [diff] [blame] | 606 | optgroup { |
| 607 | font-weight: bolder; |
| 608 | } |
| 609 | |
| 610 | option { |
| 611 | font-weight: normal; |
| 612 | } |
| 613 | |
commit-queue@webkit.org | a8dec30 | 2010-11-05 00:57:50 | [diff] [blame] | 614 | output { |
| 615 | display: inline; |
| 616 | } |
| 617 | |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 618 | /* form validation message bubble */ |
| 619 | |
| 620 | ::-webkit-validation-bubble { |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 621 | display: inline-block; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 622 | z-index: 2147483647; |
| 623 | position: absolute; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 624 | opacity: 0.95; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 625 | line-height: 0; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 626 | margin: 0; |
tkent@chromium.org | 54e43e7 | 2011-01-31 23:50:53 | [diff] [blame] | 627 | -webkit-text-security: none; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 628 | -webkit-transition: opacity 05.5s ease; |
| 629 | } |
| 630 | |
| 631 | ::-webkit-validation-bubble-message { |
| 632 | display: block; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 633 | position: relative; |
| 634 | top: -4px; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 635 | font: message-box; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 636 | color: black; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 637 | min-width: 50px; |
| 638 | max-width: 200px; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 639 | border: solid 2px #400; |
| 640 | background: -webkit-gradient(linear, left top, left bottom, from(#f8ecec), to(#e8cccc)); |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 641 | padding: 8px; |
| 642 | -webkit-border-radius: 8px; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 643 | -webkit-box-shadow: 4px 4px 4px rgba(100,100,100,0.6), |
| 644 | inset -2px -2px 1px #d0c4c4, |
| 645 | inset 2px 2px 1px white; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 646 | line-height: normal; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 647 | z-index: 2147483644; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 648 | } |
| 649 | |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 650 | ::-webkit-validation-bubble-arrow { |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 651 | display: inline-block; |
| 652 | position: relative; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 653 | left: 32px; |
| 654 | width: 16px; |
| 655 | height: 16px; |
| 656 | background-color: #f8ecec; |
| 657 | border-width: 2px 0 0 2px; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 658 | border-style: solid; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 659 | border-color: #400; |
| 660 | box-shadow: inset 2px 2px 1px white; |
| 661 | -webkit-transform-origin: 0 0; |
| 662 | -webkit-transform: rotate(45deg); |
| 663 | z-index: 2147483645; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 664 | } |
| 665 | |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 666 | ::-webkit-validation-bubble-arrow-clipper { |
| 667 | display: block; |
| 668 | overflow: hidden; |
| 669 | height: 16px; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 670 | } |
| 671 | |
yael.aharon@nokia.com | cf3f3f5 | 2010-05-15 16:41:06 | [diff] [blame] | 672 | /* meter */ |
| 673 | |
| 674 | meter { |
| 675 | -webkit-appearance: meter; |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame^] | 676 | -webkit-box-sizing: border-box; |
| 677 | display: inline-box; |
yael.aharon@nokia.com | cf3f3f5 | 2010-05-15 16:41:06 | [diff] [blame] | 678 | height: 1em; |
| 679 | width: 5em; |
| 680 | vertical-align: -0.2em; |
| 681 | } |
| 682 | |
morrita@google.com | c6e4a67 | 2011-04-01 15:59:19 | [diff] [blame] | 683 | meter::-webkit-meter-bar { |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 684 | background: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#ddd), color-stop(0.20, #eee), color-stop(0.45, #ccc), color-stop(0.55, #ccc)); |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame^] | 685 | height: 100%; |
| 686 | -webkit-box-sizing: border-box; |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 687 | } |
| 688 | |
morrita@google.com | c6e4a67 | 2011-04-01 15:59:19 | [diff] [blame] | 689 | meter::-webkit-meter-optimum-value { |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 690 | background: -webkit-gradient(linear, left top, left bottom, from(#ad7), to(#ad7), color-stop(0.20, #cea), color-stop(0.45, #7a3), color-stop(0.55, #7a3)); |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame^] | 691 | height: 100%; |
| 692 | -webkit-box-sizing: border-box; |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 693 | } |
| 694 | |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame^] | 695 | meter::-webkit-meter-suboptimum-value { |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 696 | background: -webkit-gradient(linear, left top, left bottom, from(#fe7), to(#fe7), color-stop(0.20, #ffc), color-stop(0.45, #db3), color-stop(0.55, #db3)); |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame^] | 697 | height: 100%; |
| 698 | -webkit-box-sizing: border-box; |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 699 | } |
| 700 | |
morrita@google.com | c6e4a67 | 2011-04-01 15:59:19 | [diff] [blame] | 701 | meter::-webkit-meter-even-less-good-value { |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 702 | background: -webkit-gradient(linear, left top, left bottom, from(#f77), to(#f77), color-stop(0.20, #fcc), color-stop(0.45, #d44), color-stop(0.55, #d44)); |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame^] | 703 | height: 100%; |
| 704 | -webkit-box-sizing: border-box; |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 705 | } |
| 706 | |
yael.aharon@nokia.com | aae33d5 | 2010-03-15 01:00:36 | [diff] [blame] | 707 | /* progress */ |
| 708 | |
| 709 | progress { |
| 710 | -webkit-appearance: progress-bar; |
yael.aharon@nokia.com | fc26df2 | 2010-03-26 15:42:41 | [diff] [blame] | 711 | display: inline-block; |
| 712 | height: 1em; |
| 713 | width: 10em; |
| 714 | vertical-align: -0.2em; |
morrita@google.com | d7eb386 | 2010-06-28 11:20:33 | [diff] [blame] | 715 | background-color: gray; |
yael.aharon@nokia.com | aae33d5 | 2010-03-15 01:00:36 | [diff] [blame] | 716 | } |
| 717 | |
morrita@google.com | d7eb386 | 2010-06-28 11:20:33 | [diff] [blame] | 718 | progress::-webkit-progress-bar-value { |
yael.aharon@nokia.com | aae33d5 | 2010-03-15 01:00:36 | [diff] [blame] | 719 | -webkit-appearance: progress-bar; |
morrita@google.com | d7eb386 | 2010-06-28 11:20:33 | [diff] [blame] | 720 | background-color: green; |
yael.aharon@nokia.com | aae33d5 | 2010-03-15 01:00:36 | [diff] [blame] | 721 | } |
| 722 | |
hyatt@apple.com | 455fe5a | 2009-06-22 23:24:23 | [diff] [blame] | 723 | /* datagrid */ |
| 724 | |
| 725 | datagrid { |
| 726 | height: 150px; /* We don't use width:300px in CSS, since we want width:intrinsic and width:min-intrinsic to reset to 300 properly. */ |
| 727 | -webkit-appearance: datagrid; |
| 728 | -webkit-box-sizing: border-box; |
| 729 | -webkit-rtl-ordering: logical; |
| 730 | color: black; |
| 731 | background-color: white; |
| 732 | cursor: default; |
| 733 | border: 1px inset gray; |
| 734 | white-space: initial; |
| 735 | } |
| 736 | |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 737 | /* inline elements */ |
| 738 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 739 | u, ins { |
| 740 | text-decoration: underline |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 741 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 742 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 743 | strong, b { |
| 744 | font-weight: bolder |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 745 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 746 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 747 | i, cite, em, var, address { |
| 748 | font-style: italic |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 749 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 750 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 751 | tt, code, kbd, samp { |
| 752 | font-family: monospace |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 753 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 754 | |
darin | 7816d5d | 2006-03-21 23:52:24 | [diff] [blame] | 755 | pre, xmp, plaintext, listing { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 756 | display: block; |
| 757 | font-family: monospace; |
| 758 | white-space: pre; |
| 759 | margin: 1__qem 0 |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 760 | } |
hyatt | 31ff3c2 | 2005-11-02 08:52:50 | [diff] [blame] | 761 | |
commit-queue@webkit.org | 296f65c | 2010-07-02 19:45:28 | [diff] [blame] | 762 | mark { |
| 763 | background-color: yellow; |
| 764 | color: black |
| 765 | } |
| 766 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 767 | big { |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 768 | font-size: larger |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 769 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 770 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 771 | small { |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 772 | font-size: smaller |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 773 | } |
| 774 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 775 | s, strike, del { |
| 776 | text-decoration: line-through |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 777 | } |
| 778 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 779 | sub { |
| 780 | vertical-align: sub; |
| 781 | font-size: smaller |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 782 | } |
| 783 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 784 | sup { |
| 785 | vertical-align: super; |
| 786 | font-size: smaller |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 787 | } |
| 788 | |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 789 | nobr { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 790 | white-space: nowrap |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 791 | } |
| 792 | |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 793 | /* states */ |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 794 | |
| 795 | :focus { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 796 | outline: auto 5px -webkit-focus-ring-color |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 797 | } |
| 798 | |
hyatt | 30d2200 | 2007-01-12 06:46:27 | [diff] [blame] | 799 | /* Read-only text fields do not show a focus ring but do still receive focus */ |
| 800 | html:focus, body:focus, input[readonly]:focus { |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 801 | outline: none |
| 802 | } |
| 803 | |
kdecker | 0c25f70 | 2007-03-06 22:38:17 | [diff] [blame] | 804 | input:focus, textarea:focus, isindex:focus, keygen:focus, select:focus { |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 805 | outline-offset: -2px |
| 806 | } |
| 807 | |
| 808 | input[type="button"]:focus, |
| 809 | input[type="checkbox"]:focus, |
| 810 | input[type="file"]:focus, |
| 811 | input[type="hidden"]:focus, |
| 812 | input[type="image"]:focus, |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 813 | input[type="radio"]:focus, |
| 814 | input[type="reset"]:focus, |
| 815 | input[type="search"]:focus, |
aroben | 226ef41 | 2006-09-12 19:59:32 | [diff] [blame] | 816 | input[type="submit"]:focus, |
weinig | 01f4fe9 | 2007-01-21 17:05:13 | [diff] [blame] | 817 | input[type="file"]:focus::-webkit-file-upload-button { |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 818 | outline-offset: 0 |
| 819 | } |
hyatt | 30d2200 | 2007-01-12 06:46:27 | [diff] [blame] | 820 | |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 821 | a:-webkit-any-link { |
| 822 | color: -webkit-link; |
hyatt | 2157335 | 2005-07-29 23:02:45 | [diff] [blame] | 823 | text-decoration: underline; |
mitz@apple.com | 599e57b | 2007-11-13 22:14:04 | [diff] [blame] | 824 | cursor: auto; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 825 | } |
| 826 | |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 827 | a:-webkit-any-link:active { |
| 828 | color: -webkit-activelink |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 829 | } |
| 830 | |
rolandsteiner@chromium.org | 34a7b14 | 2009-11-02 01:52:25 | [diff] [blame] | 831 | /* HTML5 ruby elements */ |
| 832 | |
rolandsteiner@chromium.org | 03de915 | 2009-11-20 05:44:06 | [diff] [blame] | 833 | ruby, rt { |
rolandsteiner@chromium.org | 7adc98e | 2010-02-03 05:57:13 | [diff] [blame] | 834 | text-indent: 0; /* blocks used for ruby rendering should not trigger this */ |
hyatt@apple.com | 99c8e78 | 2010-11-19 00:43:29 | [diff] [blame] | 835 | } |
| 836 | |
| 837 | rt { |
rolandsteiner@chromium.org | 7adc98e | 2010-02-03 05:57:13 | [diff] [blame] | 838 | line-height: normal; |
mitz@apple.com | f2029f6 | 2011-01-13 09:50:33 | [diff] [blame] | 839 | -webkit-text-emphasis: none; |
rolandsteiner@chromium.org | 03de915 | 2009-11-20 05:44:06 | [diff] [blame] | 840 | } |
| 841 | |
rolandsteiner@chromium.org | 34a7b14 | 2009-11-02 01:52:25 | [diff] [blame] | 842 | ruby > rt { |
| 843 | display: block; |
mitz@apple.com | 2c547fd | 2011-02-04 21:18:24 | [diff] [blame] | 844 | font-size: 50%; |
mitz@apple.com | 7f2f0f7 | 2011-03-01 19:48:04 | [diff] [blame] | 845 | text-align: -webkit-auto; |
rolandsteiner@chromium.org | 34a7b14 | 2009-11-02 01:52:25 | [diff] [blame] | 846 | } |
| 847 | |
| 848 | ruby > rp { |
| 849 | display: none; |
| 850 | } |
| 851 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 852 | /* other elements */ |
| 853 | |
| 854 | noframes { |
| 855 | display: none |
| 856 | } |
| 857 | |
| 858 | frameset, frame { |
| 859 | display: block |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 860 | } |
| 861 | |
hyatt | f750569 | 2007-03-18 09:21:21 | [diff] [blame] | 862 | frameset { |
| 863 | border-color: inherit |
| 864 | } |
| 865 | |
hyatt | 0cf370d | 2007-03-18 09:33:37 | [diff] [blame] | 866 | iframe { |
| 867 | border: 2px inset |
| 868 | } |
| 869 | |
luiz@webkit.org | 1524baf | 2010-12-06 01:14:39 | [diff] [blame] | 870 | details { |
| 871 | display: block |
| 872 | } |
| 873 | |
| 874 | summary { |
| 875 | display: block |
| 876 | } |
| 877 | |
yuzo@google.com | 06721d0 | 2010-06-16 03:23:12 | [diff] [blame] | 878 | /* page */ |
| 879 | |
| 880 | @page { |
| 881 | /* FIXME: Define the right default values for page properties. */ |
yuzo@google.com | f9c1d52 | 2010-06-23 07:30:04 | [diff] [blame] | 882 | size: auto; |
yuzo@google.com | c04f496 | 2010-06-28 01:59:51 | [diff] [blame] | 883 | margin: auto; |
| 884 | padding: 0px; |
| 885 | border-width: 0px; |
yuzo@google.com | 06721d0 | 2010-06-16 03:23:12 | [diff] [blame] | 886 | } |
| 887 | |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 888 | /* noscript is handled internally, as it depends on settings */ |