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, 2008, 2009, 2010, 2011 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 */
64 -webkit-margin-before: 1__qem;
65 -webkit-margin-after: 1__qem;
66 -webkit-margin-start: 0;
67 -webkit-margin-end: 0;
78 article, aside, footer, header, hgroup, nav, section {
83 display: inline-block;
84 overflow: -webkit-marquee
93 -webkit-margin-before: 1__qem;
94 -webkit-margin-after: 1em;
95 -webkit-margin-start: 40px;
96 -webkit-margin-end: 40px;
105 -webkit-margin-before: 1em;
106 -webkit-margin-after: 1em;
107 -webkit-margin-start: 40px;
108 -webkit-margin-end: 40px;
120 content: close-quote;
125 /* special centering to be able to emulate the html4/netscape behaviour */
126 text-align: -webkit-center
131 -webkit-margin-before: 0.5em;
132 -webkit-margin-after: 0.5em;
133 -webkit-margin-start: auto;
134 -webkit-margin-end: auto;
143 /* heading elements */
148 -webkit-margin-before: 0.67__qem;
149 -webkit-margin-after: 0.67em;
150 -webkit-margin-start: 0;
151 -webkit-margin-end: 0;
155 :-webkit-any(article,aside,nav,section) h1 {
157 -webkit-margin-before: 0.83__qem;
158 -webkit-margin-after: 0.83em;
161 :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 {
163 -webkit-margin-before: 1__qem;
164 -webkit-margin-after: 1em;
167 :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 {
169 -webkit-margin-before: 1.33__qem;
170 -webkit-margin-after: 1.33em;
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 {
175 -webkit-margin-before: 1.67__qem;
176 -webkit-margin-after: 1.67em;
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 {
181 -webkit-margin-before: 2.33__qem;
182 -webkit-margin-after: 2.33em;
188 -webkit-margin-before: 0.83__qem;
189 -webkit-margin-after: 0.83em;
190 -webkit-margin-start: 0;
191 -webkit-margin-end: 0;
198 -webkit-margin-before: 1__qem;
199 -webkit-margin-after: 1em;
200 -webkit-margin-start: 0;
201 -webkit-margin-end: 0;
207 -webkit-margin-before: 1.33__qem;
208 -webkit-margin-after: 1.33em;
209 -webkit-margin-start: 0;
210 -webkit-margin-end: 0;
217 -webkit-margin-before: 1.67__qem;
218 -webkit-margin-after: 1.67em;
219 -webkit-margin-start: 0;
220 -webkit-margin-end: 0;
227 -webkit-margin-before: 2.33__qem;
228 -webkit-margin-after: 2.33em;
229 -webkit-margin-start: 0;
230 -webkit-margin-end: 0;
238 border-collapse: separate;
244 display: table-header-group;
245 vertical-align: middle;
246 border-color: inherit
250 display: table-row-group;
251 vertical-align: middle;
252 border-color: inherit
256 display: table-footer-group;
257 vertical-align: middle;
258 border-color: inherit
261 /* for tables without table section elements (can happen with XHTML or dynamically created tables) */
263 vertical-align: middle;
267 display: table-column
271 display: table-column-group
276 vertical-align: inherit;
277 border-color: inherit
282 vertical-align: inherit
290 display: table-caption;
291 text-align: -webkit-center
298 list-style-type: disc;
299 -webkit-margin-before: 1__qem;
300 -webkit-margin-after: 1em;
301 -webkit-margin-start: 0;
302 -webkit-margin-end: 0;
303 -webkit-padding-start: 40px
308 list-style-type: decimal;
309 -webkit-margin-before: 1__qem;
310 -webkit-margin-after: 1em;
311 -webkit-margin-start: 0;
312 -webkit-margin-end: 0;
313 -webkit-padding-start: 40px
321 list-style-type: circle
324 ol ol ul, ol ul ul, ul ol ul, ul ul ul {
325 list-style-type: square
330 -webkit-margin-start: 40px
335 -webkit-margin-before: 1__qem;
336 -webkit-margin-after: 1em;
337 -webkit-margin-start: 0;
338 -webkit-margin-end: 0;
345 ol ul, ul ol, ul ul, ol ol {
346 -webkit-margin-before: 0;
347 -webkit-margin-after: 0
363 -webkit-padding-start: 2px;
364 -webkit-padding-end: 2px;
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;
376 border: 2px groove ThreeDFace
380 -webkit-appearance: button;
383 /* Form controls don't go vertical. */
384 input, textarea, keygen, select, button, isindex, meter, progress {
385 -webkit-block-flow: tb !important;
388 input, textarea, keygen, select, button, isindex, datagrid {
390 font: -webkit-small-control;
392 letter-spacing: normal;
393 word-spacing: normal;
395 text-transform: none;
398 display: inline-block;
399 text-align: -webkit-auto;
402 input[type="hidden"] {
406 input, input[type="password"], input[type="search"], isindex {
407 -webkit-appearance: textfield;
409 background-color: white;
411 -webkit-rtl-ordering: logical;
412 -webkit-user-select: text;
416 input[type="search"] {
417 -webkit-appearance: searchfield;
418 -webkit-box-sizing: border-box;
421 input[type="search"]::-webkit-search-cancel-button {
422 -webkit-appearance: searchfield-cancel-button;
423 display: inline-block;
426 input[type="search"]::-webkit-search-decoration {
427 -webkit-appearance: searchfield-decoration;
428 display: inline-block;
431 input[type="search"]::-webkit-search-results-decoration {
432 -webkit-appearance: searchfield-results-decoration;
433 display: inline-block;
436 input[type="search"]::-webkit-search-results-button {
437 -webkit-appearance: searchfield-results-button;
438 display: inline-block;
441 input::-webkit-input-list-button {
442 -webkit-appearance: list-button;
443 display: inline-block;
446 input::-webkit-inner-spin-button {
447 -webkit-appearance: inner-spin-button;
448 display: inline-block;
451 -webkit-user-select: none;
454 input::-webkit-outer-spin-button {
455 -webkit-appearance: outer-spin-button;
456 display: inline-block;
460 -webkit-user-select: none;
463 input::-webkit-input-speech-button {
464 -webkit-appearance: -webkit-input-speech-button;
465 display: inline-block;
469 -webkit-border-radius: 5px;
472 keygen::-webkit-keygen-select {
477 -webkit-appearance: textarea;
478 background-color: white;
480 -webkit-rtl-ordering: logical;
481 -webkit-user-select: text;
482 -webkit-box-orient: vertical;
486 white-space: pre-wrap;
487 word-wrap: break-word;
490 input::-webkit-input-placeholder, isindex::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
494 input[type="password"] {
495 -webkit-text-security: disc !important;
498 input[type="hidden"], input[type="image"], input[type="file"] {
499 -webkit-appearance: initial;
501 background-color: initial;
506 -webkit-box-align: baseline;
507 text-align: start !important;
510 input:-webkit-autofill {
511 background-color: #FAFFBD !important;
512 background-image:none !important;
513 color: #000000 !important;
516 input[type="radio"], input[type="checkbox"] {
519 background-color: initial;
523 input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button {
524 -webkit-appearance: push-button;
528 input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button {
529 -webkit-box-align: center;
533 padding: 2px 6px 3px 6px;
534 border: 2px outset ButtonFace;
535 background-color: ButtonFace;
536 -webkit-box-sizing: border-box
539 input[type="range"] {
540 -webkit-appearance: slider-horizontal;
546 input[type="range"]::-webkit-slider-thumb {
547 -webkit-appearance: sliderthumb-horizontal;
551 input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled,
552 input[type="file"]:disabled::-webkit-file-upload-button, button:disabled,
553 select:disabled, keygen:disabled, optgroup:disabled, option:disabled, datagrid:disabled {
557 input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]:active::-webkit-file-upload-button, button:active {
561 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 {
569 input[type="checkbox"] {
570 -webkit-appearance: checkbox;
571 -webkit-box-sizing: border-box;
574 input[type="radio"] {
575 -webkit-appearance: radio;
576 -webkit-box-sizing: border-box;
580 -webkit-appearance: menulist;
581 -webkit-box-sizing: border-box;
582 -webkit-box-align: center;
585 -webkit-rtl-ordering: logical;
587 background-color: white;
593 select[size][multiple] {
594 -webkit-appearance: listbox;
595 -webkit-box-align: start;
596 border: 1px inset gray;
597 -webkit-border-radius: initial;
598 white-space: initial;
603 -webkit-appearance: menulist;
604 -webkit-box-align: center;
606 -webkit-border-radius: 5px;
622 /* form validation message bubble */
624 ::-webkit-validation-bubble {
625 display: inline-block;
631 -webkit-text-security: none;
632 -webkit-transition: opacity 05.5s ease;
635 ::-webkit-validation-bubble-message {
643 border: solid 2px #400;
644 background: -webkit-gradient(linear, left top, left bottom, from(#f8ecec), to(#e8cccc));
646 -webkit-border-radius: 8px;
647 -webkit-box-shadow: 4px 4px 4px rgba(100,100,100,0.6),
648 inset -2px -2px 1px #d0c4c4,
649 inset 2px 2px 1px white;
654 ::-webkit-validation-bubble-arrow {
655 display: inline-block;
660 background-color: #f8ecec;
661 border-width: 2px 0 0 2px;
664 box-shadow: inset 2px 2px 1px white;
665 -webkit-transform-origin: 0 0;
666 -webkit-transform: rotate(45deg);
670 ::-webkit-validation-bubble-arrow-clipper {
679 -webkit-appearance: meter;
680 -webkit-box-sizing: border-box;
684 vertical-align: -0.2em;
687 meter::-webkit-meter-bar {
688 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));
690 -webkit-box-sizing: border-box;
693 meter::-webkit-meter-optimum-value {
694 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));
696 -webkit-box-sizing: border-box;
699 meter::-webkit-meter-suboptimum-value {
700 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));
702 -webkit-box-sizing: border-box;
705 meter::-webkit-meter-even-less-good-value {
706 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));
708 -webkit-box-sizing: border-box;
714 -webkit-appearance: progress-bar;
715 -webkit-box-sizing: border-box;
716 display: inline-block;
719 vertical-align: -0.2em;
722 progress::-webkit-progress-bar {
723 background-color: gray;
725 -webkit-box-sizing: border-box;
728 progress::-webkit-progress-value {
729 background-color: green;
731 width: 50%; /* should be removed later */
732 -webkit-box-sizing: border-box;
738 height: 150px; /* We don't use width:300px in CSS, since we want width:intrinsic and width:min-intrinsic to reset to 300 properly. */
739 -webkit-appearance: datagrid;
740 -webkit-box-sizing: border-box;
741 -webkit-rtl-ordering: logical;
743 background-color: white;
745 border: 1px inset gray;
746 white-space: initial;
749 /* inline elements */
752 text-decoration: underline
759 i, cite, em, var, address {
763 tt, code, kbd, samp {
764 font-family: monospace
767 pre, xmp, plaintext, listing {
769 font-family: monospace;
775 background-color: yellow;
788 text-decoration: line-through
797 vertical-align: super;
808 outline: auto 5px -webkit-focus-ring-color
811 /* Read-only text fields do not show a focus ring but do still receive focus */
812 html:focus, body:focus, input[readonly]:focus {
816 input:focus, textarea:focus, isindex:focus, keygen:focus, select:focus {
820 input[type="button"]:focus,
821 input[type="checkbox"]:focus,
822 input[type="file"]:focus,
823 input[type="hidden"]:focus,
824 input[type="image"]:focus,
825 input[type="radio"]:focus,
826 input[type="reset"]:focus,
827 input[type="search"]:focus,
828 input[type="submit"]:focus,
829 input[type="file"]:focus::-webkit-file-upload-button {
835 text-decoration: underline;
839 a:-webkit-any-link:active {
840 color: -webkit-activelink
843 /* HTML5 ruby elements */
846 text-indent: 0; /* blocks used for ruby rendering should not trigger this */
851 -webkit-text-emphasis: none;
857 text-align: -webkit-auto;
875 border-color: inherit
890 summary::-webkit-details-marker {
891 display: inline-block;
900 /* FIXME: Define the right default values for page properties. */
907 /* noscript is handled internally, as it depends on settings */