2 * The default style sheet used to render HTML.
4 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
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.
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.
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
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
24 @namespace "http://www.w3.org/1999/xhtml";
30 /* children of the <head> element all have display:none */
55 /* generic block-level elements */
76 display: inline-block;
77 overflow: -webkit-marquee
86 margin: 1__qem 40px 1em 40px
95 /* FIXME: content: open-quote; */
100 /* FIXME: content: close-quote; */
105 /* special centering to be able to emulate the html4/netscape behaviour */
106 text-align: -webkit-center
120 /* heading elements */
125 margin: .67__qem 0 .67em 0;
132 margin: .83__qem 0 .83em 0;
139 margin: 1__qem 0 1em 0;
145 margin: 1.33__qem 0 1.33em 0;
152 margin: 1.67__qem 0 1.67em 0;
159 margin: 2.33__qem 0 2.33em 0;
167 border-collapse: separate;
172 table[align="center"] {
178 display: table-header-group;
179 vertical-align: middle;
180 border-color: inherit
184 display: table-row-group;
185 vertical-align: middle;
186 border-color: inherit
190 display: table-footer-group;
191 vertical-align: middle;
192 border-color: inherit
195 /* for tables without table section elements (can happen with XHTML or dynamically created tables) */
197 vertical-align: middle;
201 display: table-column
205 display: table-column-group
210 vertical-align: inherit;
211 border-color: inherit
216 vertical-align: inherit
224 display: table-caption;
225 text-align: -webkit-center
232 list-style-type: disc;
233 margin: 1__qem 0 1em 0;
234 -webkit-padding-start: 40px
239 list-style-type: decimal;
240 margin: 1__qem 0 1em 0;
241 -webkit-padding-start: 40px
249 list-style-type: circle
252 ol ol ul, ol ul ul, ul ol ul, ul ul ul {
253 list-style-type: square
258 -webkit-margin-start: 40px
263 margin: 1__qem 0 1em 0
270 ol ul, ul ol, ul ul, ol ol {
279 margin: 0__qem 0 1em 0
297 padding: 0.35em 0.75em 0.625em;
298 border: 2px groove ThreeDFace
302 -webkit-appearance: button;
305 input, textarea, keygen, select, button, isindex {
307 font: -webkit-small-control;
309 letter-spacing: normal;
310 word-spacing: normal;
312 text-transform: none;
315 display: inline-block;
316 text-align: -webkit-auto;
319 input[type="hidden"] {
323 input, input[type="password"], input[type="search"], isindex {
324 -webkit-appearance: textfield;
326 background-color: white;
328 -webkit-rtl-ordering: logical;
329 -webkit-user-select: text;
333 input[type="search"] {
334 -webkit-appearance: searchfield;
335 -webkit-box-sizing: border-box;
338 input[type="search"]::-webkit-search-cancel-button {
339 -webkit-appearance: searchfield-cancel-button;
342 input[type="search"]::-webkit-search-decoration {
343 -webkit-appearance: searchfield-decoration;
346 input[type="search"]::-webkit-search-results-decoration {
347 -webkit-appearance: searchfield-results-decoration;
350 input[type="search"]::-webkit-search-results-button {
351 -webkit-appearance: searchfield-results-button;
355 -webkit-appearance: textarea;
356 background-color: white;
358 -webkit-rtl-ordering: logical;
359 -webkit-user-select: text;
360 -webkit-box-orient: vertical;
365 input[type="password"] {
366 -webkit-text-security: disc !important;
369 input[type="hidden"], input[type="image"], input[type="file"] {
370 -webkit-appearance: initial;
372 background-color: initial;
377 -webkit-box-align: baseline;
380 input:-webkit-autofill {
381 background-color: #FAFFBD !important;
382 background-image:none !important;
385 input[type="radio"], input[type="checkbox"] {
388 background-color: initial;
392 input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button {
393 -webkit-appearance: push-button;
397 input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button {
398 -webkit-box-align: center;
402 padding: 2px 6px 3px 6px;
403 border: 2px outset ButtonFace;
404 background-color: ButtonFace;
405 -webkit-box-sizing: border-box
408 input[type="range"] {
409 -webkit-appearance: slider-horizontal;
415 input[type="range"]::-webkit-slider-thumb {
416 -webkit-appearance: sliderthumb-horizontal;
419 input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled, input[type="file"]:disabled::-webkit-file-upload-button, button:disabled, select:disabled, keygen:disabled, optgroup:disabled, option:disabled {
423 input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]:active::-webkit-file-upload-button, button:active {
427 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 {
435 input[type="checkbox"] {
436 -webkit-appearance: checkbox;
437 -webkit-box-sizing: border-box;
440 input[type="radio"] {
441 -webkit-appearance: radio;
442 -webkit-box-sizing: border-box;
446 -webkit-appearance: menulist;
447 -webkit-box-sizing: border-box;
448 -webkit-box-align: center;
450 -webkit-border-radius: 5px;
452 -webkit-rtl-ordering: logical;
454 background-color: white;
460 select[size][multiple] {
461 -webkit-appearance: listbox;
462 -webkit-box-align: start;
463 border: 1px inset gray;
464 -webkit-border-radius: initial;
465 white-space: initial;
470 -webkit-appearance: menulist;
471 -webkit-box-align: center;
473 -webkit-border-radius: 5px;
485 /* inline elements */
488 text-decoration: underline
495 i, cite, em, var, address {
499 tt, code, kbd, samp {
500 font-family: monospace
503 pre, xmp, plaintext, listing {
505 font-family: monospace;
519 text-decoration: line-through
528 vertical-align: super;
539 outline: auto 5px -webkit-focus-ring-color
542 /* Read-only text fields do not show a focus ring but do still receive focus */
543 html:focus, body:focus, input[readonly]:focus {
547 input:focus, textarea:focus, isindex:focus, keygen:focus, select:focus {
551 input[type="button"]:focus,
552 input[type="checkbox"]:focus,
553 input[type="file"]:focus,
554 input[type="hidden"]:focus,
555 input[type="image"]:focus,
556 input[type="radio"]:focus,
557 input[type="reset"]:focus,
558 input[type="search"]:focus,
559 input[type="submit"]:focus,
560 input[type="file"]:focus::-webkit-file-upload-button {
566 text-decoration: underline;
570 a:-webkit-any-link:active {
571 color: -webkit-activelink
585 border-color: inherit
592 /* noscript is handled internally, as it depends on settings */