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 { |
jeremy@chromium.org | c9aebbe | 2011-06-18 19:52:34 | [diff] [blame] | 317 | display: list-item; |
| 318 | text-align: -webkit-match-parent; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 319 | } |
| 320 | |
| 321 | ul ul, ol ul { |
| 322 | list-style-type: circle |
| 323 | } |
| 324 | |
| 325 | ol ol ul, ol ul ul, ul ol ul, ul ul ul { |
| 326 | list-style-type: square |
| 327 | } |
| 328 | |
| 329 | dd { |
| 330 | display: block; |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 331 | -webkit-margin-start: 40px |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 332 | } |
| 333 | |
| 334 | dl { |
| 335 | display: block; |
hyatt@apple.com | a36b0aac | 2010-11-10 01:46:10 | [diff] [blame] | 336 | -webkit-margin-before: 1__qem; |
| 337 | -webkit-margin-after: 1em; |
| 338 | -webkit-margin-start: 0; |
| 339 | -webkit-margin-end: 0; |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 340 | } |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 341 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 342 | dt { |
| 343 | display: block |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 344 | } |
hyatt | ed84c1c | 2004-04-29 01:19:04 | [diff] [blame] | 345 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 346 | ol ul, ul ol, ul ul, ol ol { |
hyatt@apple.com | a36b0aac | 2010-11-10 01:46:10 | [diff] [blame] | 347 | -webkit-margin-before: 0; |
| 348 | -webkit-margin-after: 0 |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 349 | } |
| 350 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 351 | /* form elements */ |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 352 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 353 | form { |
| 354 | display: block; |
morrita@google.com | 4646de8 | 2011-02-07 01:40:17 | [diff] [blame] | 355 | margin-top: 0__qem; |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 356 | } |
| 357 | |
hyatt | 0de4795 | 2006-09-13 06:23:56 | [diff] [blame] | 358 | label { |
| 359 | cursor: default; |
hyatt | 0de4795 | 2006-09-13 06:23:56 | [diff] [blame] | 360 | } |
| 361 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 362 | legend { |
mitz@apple.com | 177c28f | 2009-03-09 22:20:50 | [diff] [blame] | 363 | display: block; |
hyatt@apple.com | 9136a00 | 2010-10-06 12:10:02 | [diff] [blame] | 364 | -webkit-padding-start: 2px; |
| 365 | -webkit-padding-end: 2px; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 366 | border: none |
hyatt | 14633db | 2003-05-21 07:00:43 | [diff] [blame] | 367 | } |
| 368 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 369 | fieldset { |
hyatt | 14633db | 2003-05-21 07:00:43 | [diff] [blame] | 370 | display: block; |
hyatt@apple.com | 9136a00 | 2010-10-06 12:10:02 | [diff] [blame] | 371 | -webkit-margin-start: 2px; |
| 372 | -webkit-margin-end: 2px; |
| 373 | -webkit-padding-before: 0.35em; |
| 374 | -webkit-padding-start: 0.75em; |
| 375 | -webkit-padding-end: 0.75em; |
| 376 | -webkit-padding-after: 0.625em; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 377 | border: 2px groove ThreeDFace |
hyatt | 14633db | 2003-05-21 07:00:43 | [diff] [blame] | 378 | } |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 379 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 380 | button { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 381 | -webkit-appearance: button; |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 382 | } |
| 383 | |
hyatt@apple.com | 4796776 | 2010-09-22 22:11:01 | [diff] [blame] | 384 | /* Form controls don't go vertical. */ |
| 385 | input, textarea, keygen, select, button, isindex, meter, progress { |
| 386 | -webkit-block-flow: tb !important; |
| 387 | } |
| 388 | |
weinig@apple.com | 6123cc0 | 2011-04-27 00:51:39 | [diff] [blame] | 389 | input, textarea, keygen, select, button, isindex { |
hyatt | 8190538 | 2003-11-17 20:38:09 | [diff] [blame] | 390 | margin: 0__qem; |
hyatt | 2ea4801 | 2006-08-15 22:37:51 | [diff] [blame] | 391 | font: -webkit-small-control; |
hyatt | 70db89e | 2005-07-20 00:45:49 | [diff] [blame] | 392 | color: initial; |
hyatt | 1846230 | 2005-10-26 06:08:03 | [diff] [blame] | 393 | letter-spacing: normal; |
| 394 | word-spacing: normal; |
| 395 | line-height: normal; |
| 396 | text-transform: none; |
| 397 | text-indent: 0; |
hyatt | 45f78ae | 2007-07-16 21:02:02 | [diff] [blame] | 398 | text-shadow: none; |
hyatt | 70db89e | 2005-07-20 00:45:49 | [diff] [blame] | 399 | display: inline-block; |
adele | 389a5c3 | 2007-04-06 00:42:03 | [diff] [blame] | 400 | text-align: -webkit-auto; |
hyatt | ea18783 | 2002-11-12 21:44:52 | [diff] [blame] | 401 | } |
| 402 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 403 | input[type="hidden"] { |
| 404 | display: none |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 405 | } |
| 406 | |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 407 | input, input[type="password"], input[type="search"], isindex { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 408 | -webkit-appearance: textfield; |
adele | e843f09 | 2006-03-30 01:49:57 | [diff] [blame] | 409 | padding: 1px; |
| 410 | background-color: white; |
| 411 | border: 2px inset; |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 412 | -webkit-rtl-ordering: logical; |
adele | 34e1547 | 2006-04-25 00:30:13 | [diff] [blame] | 413 | -webkit-user-select: text; |
adele | 11eb9db | 2007-04-05 21:26:09 | [diff] [blame] | 414 | cursor: auto; |
adele | e843f09 | 2006-03-30 01:49:57 | [diff] [blame] | 415 | } |
| 416 | |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 417 | input[type="search"] { |
| 418 | -webkit-appearance: searchfield; |
darin | 595a349 | 2007-04-23 08:27:18 | [diff] [blame] | 419 | -webkit-box-sizing: border-box; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 420 | } |
| 421 | |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 422 | input::-webkit-textfield-decoration-container { |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 423 | display: -webkit-box; |
| 424 | -webkit-box-align: center; |
| 425 | } |
| 426 | |
tkent@chromium.org | 590a250 | 2011-07-20 07:52:39 | [diff] [blame] | 427 | input[type="search"]::-webkit-textfield-decoration-container { |
| 428 | direction: ltr; |
| 429 | } |
| 430 | |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 431 | input[type="search"]::-webkit-search-cancel-button { |
| 432 | -webkit-appearance: searchfield-cancel-button; |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 433 | display: block; |
| 434 | -webkit-box-flex: 0; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 435 | } |
| 436 | |
| 437 | input[type="search"]::-webkit-search-decoration { |
| 438 | -webkit-appearance: searchfield-decoration; |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 439 | display: block; |
| 440 | -webkit-box-flex: 0; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 441 | } |
| 442 | |
| 443 | input[type="search"]::-webkit-search-results-decoration { |
| 444 | -webkit-appearance: searchfield-results-decoration; |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 445 | display: block; |
| 446 | -webkit-box-flex: 0; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 447 | } |
| 448 | |
| 449 | input[type="search"]::-webkit-search-results-button { |
| 450 | -webkit-appearance: searchfield-results-button; |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 451 | display: block; |
| 452 | -webkit-box-flex: 0; |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 453 | } |
| 454 | |
tkent@chromium.org | 17aaf6d | 2011-05-20 10:47:56 | [diff] [blame] | 455 | #if defined(ENABLE_DATALIST) && ENABLE_DATALIST |
eric@webkit.org | 923f704 | 2009-10-05 18:05:36 | [diff] [blame] | 456 | input::-webkit-input-list-button { |
| 457 | -webkit-appearance: list-button; |
| 458 | display: inline-block; |
| 459 | } |
tkent@chromium.org | 17aaf6d | 2011-05-20 10:47:56 | [diff] [blame] | 460 | #endif |
eric@webkit.org | 923f704 | 2009-10-05 18:05:36 | [diff] [blame] | 461 | |
eric@webkit.org | 1f8902b | 2009-12-21 04:57:59 | [diff] [blame] | 462 | input::-webkit-inner-spin-button { |
| 463 | -webkit-appearance: inner-spin-button; |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 464 | display: block; |
tkent@chromium.org | 2780511 | 2011-04-07 07:03:22 | [diff] [blame] | 465 | position: relative; |
| 466 | cursor: default; |
tkent@chromium.org | 287a744 | 2011-05-23 10:10:38 | [diff] [blame] | 467 | vertical-align: top; |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 468 | -webkit-box-flex: 0; |
tkent@chromium.org | fce8bf9 | 2010-04-30 08:45:49 | [diff] [blame] | 469 | -webkit-user-select: none; |
eric@webkit.org | 1f8902b | 2009-12-21 04:57:59 | [diff] [blame] | 470 | } |
| 471 | |
tkent@chromium.org | 17aaf6d | 2011-05-20 10:47:56 | [diff] [blame] | 472 | #if defined(ENABLE_INPUT_SPEECH) && ENABLE_INPUT_SPEECH |
jorlow@chromium.org | 2082a6d | 2010-06-24 10:40:28 | [diff] [blame] | 473 | input::-webkit-input-speech-button { |
satish@chromium.org | ec9a80a | 2010-09-29 13:45:15 | [diff] [blame] | 474 | -webkit-appearance: -webkit-input-speech-button; |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 475 | display: block; |
tkent@chromium.org | 287a744 | 2011-05-23 10:10:38 | [diff] [blame] | 476 | vertical-align: top; |
tkent@chromium.org | a994882 | 2011-06-30 06:30:23 | [diff] [blame] | 477 | -webkit-box-flex: 0; |
jorlow@chromium.org | 2082a6d | 2010-06-24 10:40:28 | [diff] [blame] | 478 | } |
tkent@chromium.org | 17aaf6d | 2011-05-20 10:47:56 | [diff] [blame] | 479 | #endif |
jorlow@chromium.org | 2082a6d | 2010-06-24 10:40:28 | [diff] [blame] | 480 | |
morrita@google.com | 4646de8 | 2011-02-07 01:40:17 | [diff] [blame] | 481 | keygen, select { |
| 482 | -webkit-border-radius: 5px; |
| 483 | } |
| 484 | |
| 485 | keygen::-webkit-keygen-select { |
| 486 | margin: 0px; |
| 487 | } |
| 488 | |
adele | 2d542cb | 2006-05-17 23:32:38 | [diff] [blame] | 489 | textarea { |
adele | 6401bff | 2006-06-21 07:23:06 | [diff] [blame] | 490 | -webkit-appearance: textarea; |
| 491 | background-color: white; |
adele | 3a2e043 | 2006-06-16 18:27:54 | [diff] [blame] | 492 | border: 1px solid; |
adele | 2d542cb | 2006-05-17 23:32:38 | [diff] [blame] | 493 | -webkit-rtl-ordering: logical; |
| 494 | -webkit-user-select: text; |
| 495 | -webkit-box-orient: vertical; |
hyatt | 1c78686 | 2006-07-19 00:16:34 | [diff] [blame] | 496 | resize: auto; |
adele | 11eb9db | 2007-04-05 21:26:09 | [diff] [blame] | 497 | cursor: auto; |
ojan@chromium.org | 0484dd0 | 2009-04-29 20:31:53 | [diff] [blame] | 498 | padding: 2px; |
levin@chromium.org | fb47c84 | 2009-07-16 05:32:39 | [diff] [blame] | 499 | white-space: pre-wrap; |
| 500 | word-wrap: break-word; |
adele | 2d542cb | 2006-05-17 23:32:38 | [diff] [blame] | 501 | } |
| 502 | |
tkent@chromium.org | 840b954 | 2011-07-14 02:16:54 | [diff] [blame] | 503 | ::-webkit-input-placeholder { |
| 504 | -webkit-text-security: none; |
adele@apple.com | 81be3ce | 2008-09-30 23:21:50 | [diff] [blame] | 505 | color: darkGray; |
tkent@chromium.org | 840b954 | 2011-07-14 02:16:54 | [diff] [blame] | 506 | display: block !important; |
| 507 | pointer-events: none !important; |
| 508 | position: relative !important; |
| 509 | } |
| 510 | |
| 511 | input::-webkit-input-placeholder, isindex::-webkit-input-placeholder { |
| 512 | white-space: pre; |
| 513 | word-wrap: normal; |
| 514 | overflow: hidden; |
| 515 | padding-left: 1px; |
| 516 | padding-right: 1px; |
adele@apple.com | 81be3ce | 2008-09-30 23:21:50 | [diff] [blame] | 517 | } |
| 518 | |
adele | ceb356d | 2006-08-26 00:33:22 | [diff] [blame] | 519 | input[type="password"] { |
adele | ef0b4ac | 2006-08-30 18:32:40 | [diff] [blame] | 520 | -webkit-text-security: disc !important; |
adele | ceb356d | 2006-08-26 00:33:22 | [diff] [blame] | 521 | } |
| 522 | |
adele | edb7806 | 2006-12-16 09:56:49 | [diff] [blame] | 523 | input[type="hidden"], input[type="image"], input[type="file"] { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 524 | -webkit-appearance: initial; |
adele | e843f09 | 2006-03-30 01:49:57 | [diff] [blame] | 525 | padding: initial; |
| 526 | background-color: initial; |
| 527 | border: initial; |
| 528 | } |
| 529 | |
aroben | 226ef41 | 2006-09-12 19:59:32 | [diff] [blame] | 530 | input[type="file"] { |
| 531 | -webkit-box-align: baseline; |
tkent@chromium.org | cb0c8be | 2011-09-02 02:12:28 | [diff] [blame] | 532 | color: inherit; |
simon.fraser@apple.com | e8e1abb | 2008-10-03 00:43:39 | [diff] [blame] | 533 | text-align: start !important; |
aroben | 226ef41 | 2006-09-12 19:59:32 | [diff] [blame] | 534 | } |
| 535 | |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 536 | input:-webkit-autofill { |
adele | a464e9f | 2006-04-13 01:50:04 | [diff] [blame] | 537 | background-color: #FAFFBD !important; |
| 538 | background-image:none !important; |
commit-queue@webkit.org | 9940484 | 2011-03-15 18:02:55 | [diff] [blame] | 539 | color: #000000 !important; |
adele | a464e9f | 2006-04-13 01:50:04 | [diff] [blame] | 540 | } |
| 541 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 542 | input[type="radio"], input[type="checkbox"] { |
hyatt | 2157335 | 2005-07-29 23:02:45 | [diff] [blame] | 543 | margin: 3px 0.5ex; |
adele | e843f09 | 2006-03-30 01:49:57 | [diff] [blame] | 544 | padding: initial; |
| 545 | background-color: initial; |
| 546 | border: initial; |
hyatt | 2157335 | 2005-07-29 23:02:45 | [diff] [blame] | 547 | } |
| 548 | |
dglazkov@chromium.org | fa74b11 | 2011-06-04 17:14:22 | [diff] [blame] | 549 | input[type="button"], input[type="submit"], input[type="reset"] { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 550 | -webkit-appearance: push-button; |
hyatt | 1846230 | 2005-10-26 06:08:03 | [diff] [blame] | 551 | white-space: pre |
hyatt | f5b9a82 | 2005-10-21 21:27:51 | [diff] [blame] | 552 | } |
| 553 | |
dglazkov@chromium.org | fa74b11 | 2011-06-04 17:14:22 | [diff] [blame] | 554 | input[type="file"]::-webkit-file-upload-button { |
| 555 | -webkit-appearance: push-button; |
| 556 | white-space: nowrap; |
| 557 | margin: 0; |
tkent@chromium.org | 9b64104 | 2011-09-01 02:40:01 | [diff] [blame] | 558 | font-size: inherit; |
dglazkov@chromium.org | fa74b11 | 2011-06-04 17:14:22 | [diff] [blame] | 559 | } |
| 560 | |
aroben | 226ef41 | 2006-09-12 19:59:32 | [diff] [blame] | 561 | 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] | 562 | -webkit-box-align: center; |
hyatt | 1846230 | 2005-10-26 06:08:03 | [diff] [blame] | 563 | text-align: center; |
hyatt | 969dc1e | 2005-10-22 18:19:27 | [diff] [blame] | 564 | cursor: default; |
| 565 | color: ButtonText; |
hyatt | cc278a4 | 2005-10-28 07:03:26 | [diff] [blame] | 566 | padding: 2px 6px 3px 6px; |
| 567 | border: 2px outset ButtonFace; |
hyatt | b265025 | 2006-05-08 08:17:07 | [diff] [blame] | 568 | background-color: ButtonFace; |
darin | 595a349 | 2007-04-23 08:27:18 | [diff] [blame] | 569 | -webkit-box-sizing: border-box |
hyatt | 969dc1e | 2005-10-22 18:19:27 | [diff] [blame] | 570 | } |
| 571 | |
adele | 832cc33 | 2006-11-16 01:42:28 | [diff] [blame] | 572 | input[type="range"] { |
| 573 | -webkit-appearance: slider-horizontal; |
| 574 | padding: initial; |
| 575 | border: initial; |
adele | 832cc33 | 2006-11-16 01:42:28 | [diff] [blame] | 576 | margin: 2px; |
| 577 | } |
| 578 | |
tkent@chromium.org | 3630f91 | 2011-06-14 03:46:30 | [diff] [blame] | 579 | input[type="range"]::-webkit-slider-container { |
| 580 | -webkit-box-align: center; |
| 581 | -webkit-box-orient: horizontal; /* This property is updated by C++ code. */ |
| 582 | -webkit-box-sizing: border-box; |
| 583 | display: -webkit-box; |
| 584 | height: 100%; |
| 585 | width: 100%; |
| 586 | } |
| 587 | |
| 588 | input[type="range"]::-webkit-slider-runnable-track { |
| 589 | -webkit-box-flex: 1; |
| 590 | -webkit-box-sizing: border-box; |
| 591 | display: block; |
| 592 | } |
| 593 | |
adele | 832cc33 | 2006-11-16 01:42:28 | [diff] [blame] | 594 | input[type="range"]::-webkit-slider-thumb { |
| 595 | -webkit-appearance: sliderthumb-horizontal; |
tkent@chromium.org | 3630f91 | 2011-06-14 03:46:30 | [diff] [blame] | 596 | -webkit-box-sizing: border-box; |
dglazkov@chromium.org | b6ebe4e | 2011-01-11 21:05:33 | [diff] [blame] | 597 | display: block; |
tkent@chromium.org | 3630f91 | 2011-06-14 03:46:30 | [diff] [blame] | 598 | position: relative; |
adele | 832cc33 | 2006-11-16 01:42:28 | [diff] [blame] | 599 | } |
| 600 | |
hyatt@apple.com | 455fe5a | 2009-06-22 23:24:23 | [diff] [blame] | 601 | input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled, |
| 602 | input[type="file"]:disabled::-webkit-file-upload-button, button:disabled, |
weinig@apple.com | 6123cc0 | 2011-04-27 00:51:39 | [diff] [blame] | 603 | select:disabled, keygen:disabled, optgroup:disabled, option:disabled { |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 604 | color: GrayText |
hyatt | f5b9a82 | 2005-10-21 21:27:51 | [diff] [blame] | 605 | } |
| 606 | |
weinig | 01f4fe9 | 2007-01-21 17:05:13 | [diff] [blame] | 607 | 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] | 608 | border-style: inset |
| 609 | } |
| 610 | |
weinig | 01f4fe9 | 2007-01-21 17:05:13 | [diff] [blame] | 611 | 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] | 612 | border-style: outset |
| 613 | } |
| 614 | |
adele | aa94979 | 2006-07-06 05:47:30 | [diff] [blame] | 615 | area, param { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 616 | display: none |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 617 | } |
| 618 | |
hyatt | 70db89e | 2005-07-20 00:45:49 | [diff] [blame] | 619 | input[type="checkbox"] { |
hyatt | b265025 | 2006-05-08 08:17:07 | [diff] [blame] | 620 | -webkit-appearance: checkbox; |
darin | 595a349 | 2007-04-23 08:27:18 | [diff] [blame] | 621 | -webkit-box-sizing: border-box; |
hyatt | 70db89e | 2005-07-20 00:45:49 | [diff] [blame] | 622 | } |
| 623 | |
hyatt | 4da232a | 2005-08-08 21:12:02 | [diff] [blame] | 624 | input[type="radio"] { |
hyatt | b265025 | 2006-05-08 08:17:07 | [diff] [blame] | 625 | -webkit-appearance: radio; |
darin | 595a349 | 2007-04-23 08:27:18 | [diff] [blame] | 626 | -webkit-box-sizing: border-box; |
hyatt | b265025 | 2006-05-08 08:17:07 | [diff] [blame] | 627 | } |
| 628 | |
keishi@webkit.org | 4e097fd | 2011-05-26 09:58:25 | [diff] [blame] | 629 | #if defined(ENABLE_INPUT_COLOR) && ENABLE_INPUT_COLOR |
| 630 | |
| 631 | input[type="color"] { |
| 632 | -webkit-appearance: square-button; |
| 633 | width: 44px; |
| 634 | height: 23px; |
| 635 | } |
| 636 | |
| 637 | input[type="color"]::-webkit-color-swatch-wrapper { |
| 638 | display:-webkit-box; |
| 639 | padding: 4px 2px; |
| 640 | -webkit-box-sizing: border-box; |
| 641 | width: 100%; |
| 642 | height: 100% |
| 643 | } |
| 644 | |
| 645 | input[type="color"]::-webkit-color-swatch { |
| 646 | background-color: #000000; |
| 647 | border: 1px solid #777777; |
| 648 | -webkit-box-flex: 1; |
| 649 | } |
| 650 | |
| 651 | #if defined(ENABLE_DATALIST) && ENABLE_DATALIST |
| 652 | |
| 653 | input[type="color"][list] { |
| 654 | -webkit-appearance: menulist; |
| 655 | width: 88px; |
| 656 | height: 23px; |
| 657 | } |
| 658 | |
| 659 | input[type="color"][list]::-webkit-color-swatch-wrapper { |
| 660 | padding-left: 8px; |
| 661 | padding-right: 24px; |
| 662 | } |
| 663 | |
| 664 | input[type="color"][list]::-webkit-color-swatch { |
| 665 | border-color: #000000; |
| 666 | } |
| 667 | |
| 668 | #endif // defined(ENABLE_DATALIST) && ENABLE_DATALIST |
| 669 | |
| 670 | #endif // defined(ENABLE_INPUT_COLOR) && ENABLE_INPUT_COLOR |
| 671 | |
morrita@google.com | 4646de8 | 2011-02-07 01:40:17 | [diff] [blame] | 672 | select { |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 673 | -webkit-appearance: menulist; |
darin | 595a349 | 2007-04-23 08:27:18 | [diff] [blame] | 674 | -webkit-box-sizing: border-box; |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 675 | -webkit-box-align: center; |
bdash | f448ccd | 2007-04-12 04:45:48 | [diff] [blame] | 676 | border: 1px solid; |
bdash | f448ccd | 2007-04-12 04:45:48 | [diff] [blame] | 677 | white-space: pre; |
ap | 0e96bcc | 2006-07-24 16:21:36 | [diff] [blame] | 678 | -webkit-rtl-ordering: logical; |
adele | c15bc25 | 2006-08-25 23:44:05 | [diff] [blame] | 679 | color: black; |
adele | c15bc25 | 2006-08-25 23:44:05 | [diff] [blame] | 680 | background-color: white; |
adele | 11eb9db | 2007-04-05 21:26:09 | [diff] [blame] | 681 | cursor: default; |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 682 | } |
| 683 | |
| 684 | select[size], |
| 685 | select[multiple], |
| 686 | select[size][multiple] { |
adele | d62c9ce | 2006-09-29 23:13:49 | [diff] [blame] | 687 | -webkit-appearance: listbox; |
bdash | f448ccd | 2007-04-12 04:45:48 | [diff] [blame] | 688 | -webkit-box-align: start; |
adele | d62c9ce | 2006-09-29 23:13:49 | [diff] [blame] | 689 | border: 1px inset gray; |
| 690 | -webkit-border-radius: initial; |
| 691 | white-space: initial; |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 692 | } |
kdecker | 0c25f70 | 2007-03-06 22:38:17 | [diff] [blame] | 693 | |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 694 | select[size="0"], |
| 695 | select[size="1"] { |
| 696 | -webkit-appearance: menulist; |
adele | 5f40b59 | 2006-07-10 07:19:24 | [diff] [blame] | 697 | -webkit-box-align: center; |
adele | c15bc25 | 2006-08-25 23:44:05 | [diff] [blame] | 698 | border: 1px solid; |
| 699 | -webkit-border-radius: 5px; |
bdash | f448ccd | 2007-04-12 04:45:48 | [diff] [blame] | 700 | white-space: pre; |
hyatt | 4da232a | 2005-08-08 21:12:02 | [diff] [blame] | 701 | } |
| 702 | |
adele | aa94979 | 2006-07-06 05:47:30 | [diff] [blame] | 703 | optgroup { |
| 704 | font-weight: bolder; |
| 705 | } |
| 706 | |
| 707 | option { |
| 708 | font-weight: normal; |
| 709 | } |
| 710 | |
commit-queue@webkit.org | a8dec30 | 2010-11-05 00:57:50 | [diff] [blame] | 711 | output { |
| 712 | display: inline; |
| 713 | } |
| 714 | |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 715 | /* form validation message bubble */ |
| 716 | |
| 717 | ::-webkit-validation-bubble { |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 718 | display: inline-block; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 719 | z-index: 2147483647; |
| 720 | position: absolute; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 721 | opacity: 0.95; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 722 | line-height: 0; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 723 | margin: 0; |
tkent@chromium.org | 54e43e7 | 2011-01-31 23:50:53 | [diff] [blame] | 724 | -webkit-text-security: none; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 725 | -webkit-transition: opacity 05.5s ease; |
| 726 | } |
| 727 | |
| 728 | ::-webkit-validation-bubble-message { |
tkent@chromium.org | 53fa73d | 2011-08-08 07:25:35 | [diff] [blame] | 729 | display: -webkit-box; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 730 | position: relative; |
| 731 | top: -4px; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 732 | font: message-box; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 733 | color: black; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 734 | min-width: 50px; |
| 735 | max-width: 200px; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 736 | border: solid 2px #400; |
| 737 | background: -webkit-gradient(linear, left top, left bottom, from(#f8ecec), to(#e8cccc)); |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 738 | padding: 8px; |
| 739 | -webkit-border-radius: 8px; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 740 | -webkit-box-shadow: 4px 4px 4px rgba(100,100,100,0.6), |
| 741 | inset -2px -2px 1px #d0c4c4, |
| 742 | inset 2px 2px 1px white; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 743 | line-height: normal; |
tkent@chromium.org | aae2ffb | 2011-05-11 09:11:36 | [diff] [blame] | 744 | white-space: normal; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 745 | z-index: 2147483644; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 746 | } |
| 747 | |
tkent@chromium.org | 53fa73d | 2011-08-08 07:25:35 | [diff] [blame] | 748 | ::-webkit-validation-bubble-text-block { |
| 749 | -webkit-box-flex: 1; |
| 750 | } |
| 751 | |
| 752 | ::-webkit-validation-bubble-heading { |
| 753 | font-weight: bold; |
| 754 | } |
| 755 | |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 756 | ::-webkit-validation-bubble-arrow { |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 757 | display: inline-block; |
| 758 | position: relative; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 759 | left: 32px; |
| 760 | width: 16px; |
| 761 | height: 16px; |
| 762 | background-color: #f8ecec; |
| 763 | border-width: 2px 0 0 2px; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 764 | border-style: solid; |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 765 | border-color: #400; |
| 766 | box-shadow: inset 2px 2px 1px white; |
| 767 | -webkit-transform-origin: 0 0; |
| 768 | -webkit-transform: rotate(45deg); |
| 769 | z-index: 2147483645; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 770 | } |
| 771 | |
tkent@chromium.org | f585389 | 2011-03-29 01:10:49 | [diff] [blame] | 772 | ::-webkit-validation-bubble-arrow-clipper { |
| 773 | display: block; |
| 774 | overflow: hidden; |
| 775 | height: 16px; |
tkent@chromium.org | 9b404a3 | 2011-01-14 06:21:51 | [diff] [blame] | 776 | } |
| 777 | |
tkent@chromium.org | 17aaf6d | 2011-05-20 10:47:56 | [diff] [blame] | 778 | #if defined(ENABLE_METER_TAG) && ENABLE_METER_TAG |
yael.aharon@nokia.com | cf3f3f5 | 2010-05-15 16:41:06 | [diff] [blame] | 779 | /* meter */ |
| 780 | |
| 781 | meter { |
| 782 | -webkit-appearance: meter; |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame] | 783 | -webkit-box-sizing: border-box; |
| 784 | display: inline-box; |
yael.aharon@nokia.com | cf3f3f5 | 2010-05-15 16:41:06 | [diff] [blame] | 785 | height: 1em; |
| 786 | width: 5em; |
| 787 | vertical-align: -0.2em; |
| 788 | } |
| 789 | |
morrita@google.com | c6e4a67 | 2011-04-01 15:59:19 | [diff] [blame] | 790 | meter::-webkit-meter-bar { |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 791 | 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] | 792 | height: 100%; |
morrita@google.com | b41d492 | 2011-04-23 23:16:23 | [diff] [blame] | 793 | width: 100%; |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame] | 794 | -webkit-box-sizing: border-box; |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 795 | } |
| 796 | |
morrita@google.com | c6e4a67 | 2011-04-01 15:59:19 | [diff] [blame] | 797 | meter::-webkit-meter-optimum-value { |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 798 | 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] | 799 | height: 100%; |
| 800 | -webkit-box-sizing: border-box; |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 801 | } |
| 802 | |
morrita@google.com | a8dfaec | 2011-04-05 02:01:56 | [diff] [blame] | 803 | meter::-webkit-meter-suboptimum-value { |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 804 | 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] | 805 | height: 100%; |
| 806 | -webkit-box-sizing: border-box; |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 807 | } |
| 808 | |
morrita@google.com | c6e4a67 | 2011-04-01 15:59:19 | [diff] [blame] | 809 | meter::-webkit-meter-even-less-good-value { |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 810 | 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] | 811 | height: 100%; |
| 812 | -webkit-box-sizing: border-box; |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 813 | } |
tkent@chromium.org | 17aaf6d | 2011-05-20 10:47:56 | [diff] [blame] | 814 | #endif |
morrita@google.com | 81526f1 | 2010-06-18 05:13:19 | [diff] [blame] | 815 | |
tkent@chromium.org | 17aaf6d | 2011-05-20 10:47:56 | [diff] [blame] | 816 | #if defined(ENABLE_PROGRESS_TAG) && ENABLE_PROGRESS_TAG |
yael.aharon@nokia.com | aae33d5 | 2010-03-15 01:00:36 | [diff] [blame] | 817 | /* progress */ |
| 818 | |
| 819 | progress { |
| 820 | -webkit-appearance: progress-bar; |
morrita@google.com | 1b3b929 | 2011-04-06 17:03:26 | [diff] [blame] | 821 | -webkit-box-sizing: border-box; |
yael.aharon@nokia.com | fc26df2 | 2010-03-26 15:42:41 | [diff] [blame] | 822 | display: inline-block; |
| 823 | height: 1em; |
| 824 | width: 10em; |
| 825 | vertical-align: -0.2em; |
yael.aharon@nokia.com | aae33d5 | 2010-03-15 01:00:36 | [diff] [blame] | 826 | } |
| 827 | |
morrita@google.com | 1b3b929 | 2011-04-06 17:03:26 | [diff] [blame] | 828 | progress::-webkit-progress-bar { |
| 829 | background-color: gray; |
| 830 | height: 100%; |
morrita@google.com | b41d492 | 2011-04-23 23:16:23 | [diff] [blame] | 831 | width: 100%; |
morrita@google.com | 1b3b929 | 2011-04-06 17:03:26 | [diff] [blame] | 832 | -webkit-box-sizing: border-box; |
| 833 | } |
| 834 | |
| 835 | progress::-webkit-progress-value { |
morrita@google.com | d7eb386 | 2010-06-28 11:20:33 | [diff] [blame] | 836 | background-color: green; |
morrita@google.com | 1b3b929 | 2011-04-06 17:03:26 | [diff] [blame] | 837 | height: 100%; |
| 838 | width: 50%; /* should be removed later */ |
| 839 | -webkit-box-sizing: border-box; |
yael.aharon@nokia.com | aae33d5 | 2010-03-15 01:00:36 | [diff] [blame] | 840 | } |
tkent@chromium.org | 17aaf6d | 2011-05-20 10:47:56 | [diff] [blame] | 841 | #endif |
yael.aharon@nokia.com | aae33d5 | 2010-03-15 01:00:36 | [diff] [blame] | 842 | |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 843 | /* inline elements */ |
| 844 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 845 | u, ins { |
| 846 | text-decoration: underline |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 847 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 848 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 849 | strong, b { |
| 850 | font-weight: bolder |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 851 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 852 | |
commit-queue@webkit.org | e2b62ab | 2011-08-29 20:06:52 | [diff] [blame] | 853 | i, cite, em, var, address, dfn { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 854 | font-style: italic |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 855 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 856 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 857 | tt, code, kbd, samp { |
| 858 | font-family: monospace |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 859 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 860 | |
darin | 7816d5d | 2006-03-21 23:52:24 | [diff] [blame] | 861 | pre, xmp, plaintext, listing { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 862 | display: block; |
| 863 | font-family: monospace; |
| 864 | white-space: pre; |
| 865 | margin: 1__qem 0 |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 866 | } |
hyatt | 31ff3c2 | 2005-11-02 08:52:50 | [diff] [blame] | 867 | |
commit-queue@webkit.org | 296f65c | 2010-07-02 19:45:28 | [diff] [blame] | 868 | mark { |
| 869 | background-color: yellow; |
| 870 | color: black |
| 871 | } |
| 872 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 873 | big { |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 874 | font-size: larger |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 875 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 876 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 877 | small { |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 878 | font-size: smaller |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 879 | } |
| 880 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 881 | s, strike, del { |
| 882 | text-decoration: line-through |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 883 | } |
| 884 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 885 | sub { |
| 886 | vertical-align: sub; |
| 887 | font-size: smaller |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 888 | } |
| 889 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 890 | sup { |
| 891 | vertical-align: super; |
| 892 | font-size: smaller |
kocienda | f6fe31f | 2001-08-24 14:24:40 | [diff] [blame] | 893 | } |
| 894 | |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 895 | nobr { |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 896 | white-space: nowrap |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 897 | } |
| 898 | |
darin | ac44829 | 2006-01-18 08:56:19 | [diff] [blame] | 899 | /* states */ |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 900 | |
| 901 | :focus { |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 902 | outline: auto 5px -webkit-focus-ring-color |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 903 | } |
| 904 | |
hyatt | 30d2200 | 2007-01-12 06:46:27 | [diff] [blame] | 905 | /* Read-only text fields do not show a focus ring but do still receive focus */ |
| 906 | html:focus, body:focus, input[readonly]:focus { |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 907 | outline: none |
| 908 | } |
commit-queue@webkit.org | 9d33c7d | 2011-06-15 15:09:29 | [diff] [blame] | 909 | |
| 910 | applet:focus, embed:focus, iframe:focus, object:focus { |
| 911 | outline: none |
| 912 | } |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 913 | |
kdecker | 0c25f70 | 2007-03-06 22:38:17 | [diff] [blame] | 914 | input:focus, textarea:focus, isindex:focus, keygen:focus, select:focus { |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 915 | outline-offset: -2px |
| 916 | } |
| 917 | |
| 918 | input[type="button"]:focus, |
| 919 | input[type="checkbox"]:focus, |
| 920 | input[type="file"]:focus, |
| 921 | input[type="hidden"]:focus, |
| 922 | input[type="image"]:focus, |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 923 | input[type="radio"]:focus, |
| 924 | input[type="reset"]:focus, |
| 925 | input[type="search"]:focus, |
aroben | 226ef41 | 2006-09-12 19:59:32 | [diff] [blame] | 926 | input[type="submit"]:focus, |
weinig | 01f4fe9 | 2007-01-21 17:05:13 | [diff] [blame] | 927 | input[type="file"]:focus::-webkit-file-upload-button { |
darin | 18d7350 | 2006-04-03 01:11:28 | [diff] [blame] | 928 | outline-offset: 0 |
| 929 | } |
hyatt | 30d2200 | 2007-01-12 06:46:27 | [diff] [blame] | 930 | |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 931 | a:-webkit-any-link { |
| 932 | color: -webkit-link; |
hyatt | 2157335 | 2005-07-29 23:02:45 | [diff] [blame] | 933 | text-decoration: underline; |
mitz@apple.com | 599e57b | 2007-11-13 22:14:04 | [diff] [blame] | 934 | cursor: auto; |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 935 | } |
| 936 | |
hyatt | d36138b | 2006-04-14 22:50:07 | [diff] [blame] | 937 | a:-webkit-any-link:active { |
| 938 | color: -webkit-activelink |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 939 | } |
| 940 | |
rolandsteiner@chromium.org | 34a7b14 | 2009-11-02 01:52:25 | [diff] [blame] | 941 | /* HTML5 ruby elements */ |
| 942 | |
rolandsteiner@chromium.org | 03de915 | 2009-11-20 05:44:06 | [diff] [blame] | 943 | ruby, rt { |
rolandsteiner@chromium.org | 7adc98e | 2010-02-03 05:57:13 | [diff] [blame] | 944 | text-indent: 0; /* blocks used for ruby rendering should not trigger this */ |
hyatt@apple.com | 99c8e78 | 2010-11-19 00:43:29 | [diff] [blame] | 945 | } |
| 946 | |
| 947 | rt { |
rolandsteiner@chromium.org | 7adc98e | 2010-02-03 05:57:13 | [diff] [blame] | 948 | line-height: normal; |
mitz@apple.com | f2029f6 | 2011-01-13 09:50:33 | [diff] [blame] | 949 | -webkit-text-emphasis: none; |
rolandsteiner@chromium.org | 03de915 | 2009-11-20 05:44:06 | [diff] [blame] | 950 | } |
| 951 | |
rolandsteiner@chromium.org | 34a7b14 | 2009-11-02 01:52:25 | [diff] [blame] | 952 | ruby > rt { |
| 953 | display: block; |
mitz@apple.com | 2c547fd | 2011-02-04 21:18:24 | [diff] [blame] | 954 | font-size: 50%; |
mitz@apple.com | 7f2f0f7 | 2011-03-01 19:48:04 | [diff] [blame] | 955 | text-align: -webkit-auto; |
rolandsteiner@chromium.org | 34a7b14 | 2009-11-02 01:52:25 | [diff] [blame] | 956 | } |
| 957 | |
| 958 | ruby > rp { |
| 959 | display: none; |
| 960 | } |
| 961 | |
hyatt | eca875e | 2004-05-05 00:16:21 | [diff] [blame] | 962 | /* other elements */ |
| 963 | |
| 964 | noframes { |
| 965 | display: none |
| 966 | } |
| 967 | |
| 968 | frameset, frame { |
| 969 | display: block |
mjs | 14ceec5 | 2002-03-22 00:31:57 | [diff] [blame] | 970 | } |
| 971 | |
hyatt | f750569 | 2007-03-18 09:21:21 | [diff] [blame] | 972 | frameset { |
| 973 | border-color: inherit |
| 974 | } |
| 975 | |
hyatt | 0cf370d | 2007-03-18 09:33:37 | [diff] [blame] | 976 | iframe { |
| 977 | border: 2px inset |
| 978 | } |
| 979 | |
luiz@webkit.org | 1524baf | 2010-12-06 01:14:39 | [diff] [blame] | 980 | details { |
| 981 | display: block |
| 982 | } |
| 983 | |
| 984 | summary { |
| 985 | display: block |
| 986 | } |
| 987 | |
morrita@google.com | 2985007 | 2011-04-15 21:56:48 | [diff] [blame] | 988 | summary::-webkit-details-marker { |
| 989 | display: inline-block; |
| 990 | width: 0.66em; |
| 991 | height: 0.66em; |
| 992 | margin-right: 0.4em; |
| 993 | } |
| 994 | |
eric@webkit.org | ec4afb2 | 2011-09-09 00:34:59 | [diff] [blame^] | 995 | bdi { |
| 996 | unicode-bidi: -webkit-isolate; |
| 997 | } |
| 998 | |
yuzo@google.com | 06721d0 | 2010-06-16 03:23:12 | [diff] [blame] | 999 | /* page */ |
| 1000 | |
| 1001 | @page { |
| 1002 | /* FIXME: Define the right default values for page properties. */ |
yuzo@google.com | f9c1d52 | 2010-06-23 07:30:04 | [diff] [blame] | 1003 | size: auto; |
yuzo@google.com | c04f496 | 2010-06-28 01:59:51 | [diff] [blame] | 1004 | margin: auto; |
| 1005 | padding: 0px; |
| 1006 | border-width: 0px; |
yuzo@google.com | 06721d0 | 2010-06-16 03:23:12 | [diff] [blame] | 1007 | } |
| 1008 | |
tkent@chromium.org | 1b5d81d | 2011-05-20 12:26:47 | [diff] [blame] | 1009 | /* noscript is handled internally, as it depends on settings. */ |
| 1010 | |