diff options
author | Steve Block <steveblock@google.com> | 2011-05-06 11:45:16 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-05-12 13:44:10 +0100 |
commit | cad810f21b803229eb11403f9209855525a25d57 (patch) | |
tree | 29a6fd0279be608e0fe9ffe9841f722f0f4e4269 /Source/WebCore/css/wml.css | |
parent | 121b0cf4517156d0ac5111caf9830c51b69bae8f (diff) | |
download | external_webkit-cad810f21b803229eb11403f9209855525a25d57.zip external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.gz external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.bz2 |
Merge WebKit at r75315: Initial merge by git.
Change-Id: I570314b346ce101c935ed22a626b48c2af266b84
Diffstat (limited to 'Source/WebCore/css/wml.css')
-rw-r--r-- | Source/WebCore/css/wml.css | 256 |
1 files changed, 256 insertions, 0 deletions
diff --git a/Source/WebCore/css/wml.css b/Source/WebCore/css/wml.css new file mode 100644 index 0000000..4bcf08f --- /dev/null +++ b/Source/WebCore/css/wml.css @@ -0,0 +1,256 @@ +/* + * The default style sheet used to render WML. + * + * Copyright (C) 2000 Lars Knoll (knoll@kde.org) + * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. + * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + * + */ + +@namespace "http://www.wapforum.org/DTD/wml_1.1.xml" + +wml { + display: block +} + +/* children of the <head> element all have display:none */ +head { + display: none +} + +meta { + display: none +} + +access { + display: none +} + +/* generic block-level elements */ + +card { + display: block; + margin: 8px +} + +p { + display: block; + margin: 1.0__qem 0px +} + +/* tables */ + +table { + display: table; + border-collapse: separate; + border-spacing: 2px; + border-color: gray +} + +/* for tables without table section elements (can happen with XHTML or dynamically created tables) */ +table > tr { + vertical-align: middle; +} + +tr { + display: table-row; + vertical-align: inherit; + border-color: inherit +} + +td { + display: table-cell; + vertical-align: inherit +} + +/* form elements */ + +go { + display: block; + margin-top: 0__qem +} + +insertedLegend { + display: block; + padding-left: 2px; + padding-right: 2px; + border: none +} + +fieldset { + display: block; + margin-left: 2px; + margin-right: 2px; + padding: 0.35em 0.75em 0.625em; + border: 2px groove ThreeDFace +} + +do { + -webkit-appearance: button; + -webkit-box-align: center; + text-align: center; + cursor: default; + color: ButtonText; + padding: 2px 6px 3px 6px; + border: 2px outset ButtonFace; + background-color: ButtonFace; + box-sizing: border-box +} + +input, select, do { + margin: 0__qem; + font: -webkit-small-control; + color: initial; + letter-spacing: normal; + word-spacing: normal; + line-height: normal; + text-transform: none; + text-indent: 0; + text-shadow: none; + display: inline-block; + text-align: -webkit-auto; +} + +input, input[type="password"] { + -webkit-appearance: textfield; + padding: 1px; + background-color: white; + border: 2px inset; + -webkit-rtl-ordering: logical; + -webkit-user-select: text; + cursor: auto; +} + +input::-webkit-input-placeholder { + color: darkGray; +} + +input[type="password"] { + -webkit-text-security: disc !important; +} + +input:-webkit-autofill { + background-color: #FAFFBD !important; + background-image:none !important; +} + +do:disabled, select:disabled, optgroup:disabled, option:disabled { + color: GrayText +} + +do:active { + border-style: inset +} + +do:active:disabled { + border-style: outset +} + +select { + -webkit-appearance: menulist; + box-sizing: border-box; + -webkit-box-align: center; + border: 1px solid; + -webkit-border-radius: 5px; + white-space: pre; + -webkit-rtl-ordering: logical; + color: black; + background-color: white; + cursor: default; +} + +select[size], +select[multiple], +select[size][multiple] { + -webkit-appearance: listbox; + -webkit-box-align: start; + border: 1px inset gray; + -webkit-border-radius: initial; + white-space: initial; +} + +select[size="0"], +select[size="1"] { + -webkit-appearance: menulist; + -webkit-box-align: center; + border: 1px solid; + -webkit-border-radius: 5px; + white-space: pre; +} + +optgroup { + font-weight: bolder; +} + +option { + font-weight: normal; +} + +/* inline elements */ + +u { + text-decoration: underline +} + +strong, b { + font-weight: bolder +} + +i, em { + font-style: italic +} + +big { + font-size: larger +} + +small { + font-size: smaller +} + +pre { + display: block; + font-family: monospace; + white-space: pre; + margin: 1__qem 0 +} + +/* states */ + +:focus { + outline: auto 5px -webkit-focus-ring-color +} + +/* Read-only text fields do not show a focus ring but do still receive focus */ +wml:focus, card:focus { + outline: none +} + +input:focus, select:focus { + outline-offset: -2px +} + +a:-webkit-any-link, anchor:-webkit-any-link { + color: -webkit-link; + text-decoration: underline; + cursor: auto; +} + +a:-webkit-any-link:active, anchor:-webkit-any-link:active { + color: -webkit-activelink +} |