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
318 text-align: -webkit-match-parent;
322 list-style-type: circle
325 ol ol ul, ol ul ul, ul ol ul, ul ul ul {
326 list-style-type: square
331 -webkit-margin-start: 40px
336 -webkit-margin-before: 1__qem;
337 -webkit-margin-after: 1em;
338 -webkit-margin-start: 0;
339 -webkit-margin-end: 0;
346 ol ul, ul ol, ul ul, ol ol {
347 -webkit-margin-before: 0;
348 -webkit-margin-after: 0
364 -webkit-padding-start: 2px;
365 -webkit-padding-end: 2px;
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;
377 border: 2px groove ThreeDFace
381 -webkit-appearance: button;
384 /* Form controls don't go vertical. */
385 input, textarea, keygen, select, button, isindex, meter, progress {
386 -webkit-block-flow: tb !important;
389 input, textarea, keygen, select, button, isindex {
391 font: -webkit-small-control;
393 letter-spacing: normal;
394 word-spacing: normal;
396 text-transform: none;
399 display: inline-block;
400 text-align: -webkit-auto;
403 input[type="hidden"] {
407 input, input[type="password"], input[type="search"], isindex {
408 -webkit-appearance: textfield;
410 background-color: white;
412 -webkit-rtl-ordering: logical;
413 -webkit-user-select: text;
417 input[type="search"] {
418 -webkit-appearance: searchfield;
419 -webkit-box-sizing: border-box;
422 input::-webkit-textfield-decoration-container {
423 display: -webkit-box;
424 -webkit-box-align: center;
427 input[type="search"]::-webkit-textfield-decoration-container {
431 input[type="search"]::-webkit-search-cancel-button {
432 -webkit-appearance: searchfield-cancel-button;
437 input[type="search"]::-webkit-search-decoration {
438 -webkit-appearance: searchfield-decoration;
443 input[type="search"]::-webkit-search-results-decoration {
444 -webkit-appearance: searchfield-results-decoration;
449 input[type="search"]::-webkit-search-results-button {
450 -webkit-appearance: searchfield-results-button;
455 #if defined(ENABLE_DATALIST) && ENABLE_DATALIST
456 input::-webkit-input-list-button {
457 -webkit-appearance: list-button;
458 display: inline-block;
462 input::-webkit-inner-spin-button {
463 -webkit-appearance: inner-spin-button;
469 -webkit-user-select: none;
472 #if defined(ENABLE_INPUT_SPEECH) && ENABLE_INPUT_SPEECH
473 input::-webkit-input-speech-button {
474 -webkit-appearance: -webkit-input-speech-button;
482 -webkit-border-radius: 5px;
485 keygen::-webkit-keygen-select {
490 -webkit-appearance: textarea;
491 background-color: white;
493 -webkit-rtl-ordering: logical;
494 -webkit-user-select: text;
495 -webkit-box-orient: vertical;
499 white-space: pre-wrap;
500 word-wrap: break-word;
503 ::-webkit-input-placeholder {
504 -webkit-text-security: none;
506 display: block !important;
507 pointer-events: none !important;
508 position: relative !important;
511 input::-webkit-input-placeholder, isindex::-webkit-input-placeholder {
519 input[type="password"] {
520 -webkit-text-security: disc !important;
523 input[type="hidden"], input[type="image"], input[type="file"] {
524 -webkit-appearance: initial;
526 background-color: initial;
531 -webkit-box-align: baseline;
533 text-align: start !important;
536 input:-webkit-autofill {
537 background-color: #FAFFBD !important;
538 background-image:none !important;
539 color: #000000 !important;
542 input[type="radio"], input[type="checkbox"] {
545 background-color: initial;
549 input[type="button"], input[type="submit"], input[type="reset"] {
550 -webkit-appearance: push-button;
554 input[type="file"]::-webkit-file-upload-button {
555 -webkit-appearance: push-button;
561 input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button {
562 -webkit-box-align: center;
566 padding: 2px 6px 3px 6px;
567 border: 2px outset ButtonFace;
568 background-color: ButtonFace;
569 -webkit-box-sizing: border-box
572 input[type="range"] {
573 -webkit-appearance: slider-horizontal;
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;
588 input[type="range"]::-webkit-slider-runnable-track {
590 -webkit-box-sizing: border-box;
594 input[type="range"]::-webkit-slider-thumb {
595 -webkit-appearance: sliderthumb-horizontal;
596 -webkit-box-sizing: border-box;
601 input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled,
602 input[type="file"]:disabled::-webkit-file-upload-button, button:disabled,
603 select:disabled, keygen:disabled, optgroup:disabled, option:disabled {
607 input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]:active::-webkit-file-upload-button, button:active {
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 {
619 input[type="checkbox"] {
620 -webkit-appearance: checkbox;
621 -webkit-box-sizing: border-box;
624 input[type="radio"] {
625 -webkit-appearance: radio;
626 -webkit-box-sizing: border-box;
629 #if defined(ENABLE_INPUT_COLOR) && ENABLE_INPUT_COLOR
631 input[type="color"] {
632 -webkit-appearance: square-button;
637 input[type="color"]::-webkit-color-swatch-wrapper {
640 -webkit-box-sizing: border-box;
645 input[type="color"]::-webkit-color-swatch {
646 background-color: #000000;
647 border: 1px solid #777777;
651 #if defined(ENABLE_DATALIST) && ENABLE_DATALIST
653 input[type="color"][list] {
654 -webkit-appearance: menulist;
659 input[type="color"][list]::-webkit-color-swatch-wrapper {
664 input[type="color"][list]::-webkit-color-swatch {
665 border-color: #000000;
668 #endif // defined(ENABLE_DATALIST) && ENABLE_DATALIST
670 #endif // defined(ENABLE_INPUT_COLOR) && ENABLE_INPUT_COLOR
673 -webkit-appearance: menulist;
674 -webkit-box-sizing: border-box;
675 -webkit-box-align: center;
678 -webkit-rtl-ordering: logical;
680 background-color: white;
686 select[size][multiple] {
687 -webkit-appearance: listbox;
688 -webkit-box-align: start;
689 border: 1px inset gray;
690 -webkit-border-radius: initial;
691 white-space: initial;
696 -webkit-appearance: menulist;
697 -webkit-box-align: center;
699 -webkit-border-radius: 5px;
715 /* form validation message bubble */
717 ::-webkit-validation-bubble {
718 display: inline-block;
724 -webkit-text-security: none;
725 -webkit-transition: opacity 05.5s ease;
728 ::-webkit-validation-bubble-message {
729 display: -webkit-box;
736 border: solid 2px #400;
737 background: -webkit-gradient(linear, left top, left bottom, from(#f8ecec), to(#e8cccc));
739 -webkit-border-radius: 8px;
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;
748 ::-webkit-validation-bubble-text-block {
752 ::-webkit-validation-bubble-heading {
756 ::-webkit-validation-bubble-arrow {
757 display: inline-block;
762 background-color: #f8ecec;
763 border-width: 2px 0 0 2px;
766 box-shadow: inset 2px 2px 1px white;
767 -webkit-transform-origin: 0 0;
768 -webkit-transform: rotate(45deg);
772 ::-webkit-validation-bubble-arrow-clipper {
778 #if defined(ENABLE_METER_TAG) && ENABLE_METER_TAG
782 -webkit-appearance: meter;
783 -webkit-box-sizing: border-box;
787 vertical-align: -0.2em;
790 meter::-webkit-meter-bar {
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));
794 -webkit-box-sizing: border-box;
797 meter::-webkit-meter-optimum-value {
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));
800 -webkit-box-sizing: border-box;
803 meter::-webkit-meter-suboptimum-value {
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));
806 -webkit-box-sizing: border-box;
809 meter::-webkit-meter-even-less-good-value {
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));
812 -webkit-box-sizing: border-box;
816 #if defined(ENABLE_PROGRESS_TAG) && ENABLE_PROGRESS_TAG
820 -webkit-appearance: progress-bar;
821 -webkit-box-sizing: border-box;
822 display: inline-block;
825 vertical-align: -0.2em;
828 progress::-webkit-progress-bar {
829 background-color: gray;
832 -webkit-box-sizing: border-box;
835 progress::-webkit-progress-value {
836 background-color: green;
838 width: 50%; /* should be removed later */
839 -webkit-box-sizing: border-box;
843 /* inline elements */
846 text-decoration: underline
853 i, cite, em, var, address, dfn {
857 tt, code, kbd, samp {
858 font-family: monospace
861 pre, xmp, plaintext, listing {
863 font-family: monospace;
869 background-color: yellow;
882 text-decoration: line-through
891 vertical-align: super;
902 outline: auto 5px -webkit-focus-ring-color
905 /* Read-only text fields do not show a focus ring but do still receive focus */
906 html:focus, body:focus, input[readonly]:focus {
910 applet:focus, embed:focus, iframe:focus, object:focus {
914 input:focus, textarea:focus, isindex:focus, keygen:focus, select:focus {
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,
923 input[type="radio"]:focus,
924 input[type="reset"]:focus,
925 input[type="search"]:focus,
926 input[type="submit"]:focus,
927 input[type="file"]:focus::-webkit-file-upload-button {
933 text-decoration: underline;
937 a:-webkit-any-link:active {
938 color: -webkit-activelink
941 /* HTML5 ruby elements */
944 text-indent: 0; /* blocks used for ruby rendering should not trigger this */
949 -webkit-text-emphasis: none;
955 text-align: -webkit-auto;
973 border-color: inherit
988 summary::-webkit-details-marker {
989 display: inline-block;
996 unicode-bidi: -webkit-isolate;
1002 /* FIXME: Define the right default values for page properties. */
1009 /* noscript is handled internally, as it depends on settings. */