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 */
62 body:-webkit-full-page-media {
63 background-color: rgb(0, 0, 0)
68 -webkit-margin-before: 1__qem;
69 -webkit-margin-after: 1__qem;
70 -webkit-margin-start: 0;
71 -webkit-margin-end: 0;
82 article, aside, footer, header, hgroup, main, nav, section {
87 display: inline-block;
96 -webkit-margin-before: 1__qem;
97 -webkit-margin-after: 1em;
98 -webkit-margin-start: 40px;
99 -webkit-margin-end: 40px;
108 -webkit-margin-before: 1em;
109 -webkit-margin-after: 1em;
110 -webkit-margin-start: 40px;
111 -webkit-margin-end: 40px;
123 content: close-quote;
128 /* special centering to be able to emulate the html4/netscape behaviour */
129 text-align: -webkit-center
134 -webkit-margin-before: 0.5em;
135 -webkit-margin-after: 0.5em;
136 -webkit-margin-start: auto;
137 -webkit-margin-end: auto;
150 /* heading elements */
155 -webkit-margin-before: 0.67__qem;
156 -webkit-margin-after: 0.67em;
157 -webkit-margin-start: 0;
158 -webkit-margin-end: 0;
162 :-webkit-any(article,aside,nav,section) h1 {
164 -webkit-margin-before: 0.83__qem;
165 -webkit-margin-after: 0.83em;
168 :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 {
170 -webkit-margin-before: 1__qem;
171 -webkit-margin-after: 1em;
174 :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 {
176 -webkit-margin-before: 1.33__qem;
177 -webkit-margin-after: 1.33em;
180 :-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 {
182 -webkit-margin-before: 1.67__qem;
183 -webkit-margin-after: 1.67em;
186 :-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 {
188 -webkit-margin-before: 2.33__qem;
189 -webkit-margin-after: 2.33em;
195 -webkit-margin-before: 0.83__qem;
196 -webkit-margin-after: 0.83em;
197 -webkit-margin-start: 0;
198 -webkit-margin-end: 0;
205 -webkit-margin-before: 1__qem;
206 -webkit-margin-after: 1em;
207 -webkit-margin-start: 0;
208 -webkit-margin-end: 0;
214 -webkit-margin-before: 1.33__qem;
215 -webkit-margin-after: 1.33em;
216 -webkit-margin-start: 0;
217 -webkit-margin-end: 0;
224 -webkit-margin-before: 1.67__qem;
225 -webkit-margin-after: 1.67em;
226 -webkit-margin-start: 0;
227 -webkit-margin-end: 0;
234 -webkit-margin-before: 2.33__qem;
235 -webkit-margin-after: 2.33em;
236 -webkit-margin-start: 0;
237 -webkit-margin-end: 0;
245 border-collapse: separate;
251 display: table-header-group;
252 vertical-align: middle;
253 border-color: inherit
257 display: table-row-group;
258 vertical-align: middle;
259 border-color: inherit
263 display: table-footer-group;
264 vertical-align: middle;
265 border-color: inherit
268 /* for tables without table section elements (can happen with XHTML or dynamically created tables) */
270 vertical-align: middle;
274 display: table-column
278 display: table-column-group
283 vertical-align: inherit;
284 border-color: inherit
289 vertical-align: inherit
297 display: table-caption;
298 text-align: -webkit-center
305 list-style-type: disc;
306 -webkit-margin-before: 1__qem;
307 -webkit-margin-after: 1em;
308 -webkit-margin-start: 0;
309 -webkit-margin-end: 0;
310 -webkit-padding-start: 40px
315 list-style-type: decimal;
316 -webkit-margin-before: 1__qem;
317 -webkit-margin-after: 1em;
318 -webkit-margin-start: 0;
319 -webkit-margin-end: 0;
320 -webkit-padding-start: 40px
325 text-align: -webkit-match-parent;
329 list-style-type: circle
332 ol ol ul, ol ul ul, ul ol ul, ul ul ul {
333 list-style-type: square
338 -webkit-margin-start: 40px
343 -webkit-margin-before: 1__qem;
344 -webkit-margin-after: 1em;
345 -webkit-margin-start: 0;
346 -webkit-margin-end: 0;
353 ol ul, ul ol, ul ul, ol ol {
354 -webkit-margin-before: 0;
355 -webkit-margin-after: 0
371 -webkit-padding-start: 2px;
372 -webkit-padding-end: 2px;
378 -webkit-margin-start: 2px;
379 -webkit-margin-end: 2px;
380 -webkit-padding-before: 0.35em;
381 -webkit-padding-start: 0.75em;
382 -webkit-padding-end: 0.75em;
383 -webkit-padding-after: 0.625em;
384 border: 2px groove ThreeDFace;
385 min-width: -webkit-min-content;
389 -webkit-appearance: button;
392 /* Form controls don't go vertical. */
393 input, textarea, keygen, select, button, meter, progress {
394 -webkit-writing-mode: horizontal-tb !important;
397 input, textarea, keygen, select, button {
399 font: -webkit-small-control;
401 letter-spacing: normal;
402 word-spacing: normal;
404 text-transform: none;
407 display: inline-block;
411 input[type="hidden"] {
415 input, input[type="password"], input[type="search"] {
416 -webkit-appearance: textfield;
418 background-color: white;
420 -webkit-rtl-ordering: logical;
421 -webkit-user-select: text;
425 input[type="search"] {
426 -webkit-appearance: searchfield;
427 box-sizing: border-box;
430 input::-webkit-textfield-decoration-container {
433 -webkit-user-modify: read-only !important;
434 content: none !important;
437 input[type="search"]::-webkit-textfield-decoration-container {
441 input::-webkit-clear-button {
442 -webkit-appearance: searchfield-cancel-button;
443 display: inline-block;
445 -webkit-user-modify: read-only !important;
446 -webkit-margin-start: 2px;
448 pionter-events: none;
451 input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-clear-button {
453 pointer-events: auto;
456 input[type="search"]::-webkit-search-cancel-button {
457 -webkit-appearance: searchfield-cancel-button;
460 -webkit-user-modify: read-only !important;
461 -webkit-margin-start: 1px;
463 pointer-events: none;
466 input[type="search"]:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-search-cancel-button {
468 pointer-events: auto;
471 input[type="search"]::-webkit-search-decoration {
472 -webkit-appearance: searchfield-decoration;
475 -webkit-user-modify: read-only !important;
476 -webkit-align-self: flex-start;
480 input[type="search"]::-webkit-search-results-decoration {
481 -webkit-appearance: searchfield-results-decoration;
484 -webkit-user-modify: read-only !important;
485 -webkit-align-self: flex-start;
489 #if defined(ENABLE_INPUT_MULTIPLE_FIELDS_UI) && ENABLE_INPUT_MULTIPLE_FIELDS_UI
491 input[type="datetime-local"],
496 display: -webkit-inline-flex;
497 font-family: monospace;
500 -webkit-padding-start: 1px;
503 input::-webkit-datetime-edit {
505 -webkit-user-modify: read-only !important;
506 display: inline-block;
510 input::-webkit-datetime-edit-fields-wrapper {
511 -webkit-user-modify: read-only !important;
512 display: inline-block;
517 /* If you update padding, border, or margin in the following ruleset, update
518 DateTimeFieldElement::maximumWidth too. */
519 input::-webkit-datetime-edit-ampm-field,
520 input::-webkit-datetime-edit-day-field,
521 input::-webkit-datetime-edit-hour-field,
522 input::-webkit-datetime-edit-millisecond-field,
523 input::-webkit-datetime-edit-minute-field,
524 input::-webkit-datetime-edit-month-field,
525 input::-webkit-datetime-edit-second-field,
526 input::-webkit-datetime-edit-week-field,
527 input::-webkit-datetime-edit-year-field {
528 -webkit-user-modify: read-only !important;
531 font: inherit !important;
535 /* Remove focus ring from fields and use highlight color */
536 input::-webkit-datetime-edit-ampm-field:focus,
537 input::-webkit-datetime-edit-day-field:focus,
538 input::-webkit-datetime-edit-hour-field:focus,
539 input::-webkit-datetime-edit-millisecond-field:focus,
540 input::-webkit-datetime-edit-minute-field:focus,
541 input::-webkit-datetime-edit-month-field:focus,
542 input::-webkit-datetime-edit-second-field:focus,
543 input::-webkit-datetime-edit-week-field:focus,
544 input::-webkit-datetime-edit-year-field:focus {
545 background-color: highlight;
546 color: highlighttext;
550 input::-webkit-datetime-edit-year-field[disabled],
551 input::-webkit-datetime-edit-month-field[disabled],
552 input::-webkit-datetime-edit-week-field[disabled],
553 input::-webkit-datetime-edit-day-field[disabled],
554 input::-webkit-datetime-edit-ampm-field[disabled],
555 input::-webkit-datetime-edit-hour-field[disabled],
556 input::-webkit-datetime-edit-millisecond-field[disabled],
557 input::-webkit-datetime-edit-minute-field[disabled],
558 input::-webkit-datetime-edit-second-field[disabled] {
562 /* If you update padding, border, or margin in the following ruleset, update
563 DateTimeEditElement::customStyelForRenderer too. */
564 input::-webkit-datetime-edit-text {
565 -webkit-user-modify: read-only !important;
567 font: inherit !important;
570 input[type="date"]::-webkit-inner-spin-button,
571 input[type="datetime"]::-webkit-inner-spin-button,
572 input[type="datetime-local"]::-webkit-inner-spin-button,
573 input[type="month"]::-webkit-inner-spin-button,
574 input[type="time"]::-webkit-inner-spin-button,
575 input[type="week"]::-webkit-inner-spin-button {
576 /* FIXME: Remove height. */
578 -webkit-margin-start: 2px;
583 input[type="datetime-local"],
588 -webkit-appearance: menulist;
589 background-color: ButtonFace;
590 border: 1px solid #a9a9a9;
591 display: -webkit-inline-flex;
596 input::-webkit-date-and-time-value {
597 margin: 1px 24px 1px 4px;
602 input::-webkit-inner-spin-button {
603 -webkit-appearance: inner-spin-button;
604 display: inline-block;
608 -webkit-user-select: none;
609 -webkit-user-modify: read-only !important;
611 pointer-events: none;
614 input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-inner-spin-button {
616 pointer-events: auto;
623 keygen::-webkit-keygen-select {
628 -webkit-appearance: textarea;
629 background-color: white;
631 -webkit-rtl-ordering: logical;
632 -webkit-user-select: text;
633 flex-direction: column;
637 white-space: pre-wrap;
638 word-wrap: break-word;
641 ::-webkit-input-placeholder {
642 -webkit-text-security: none;
644 display: block !important;
645 pointer-events: none !important;
648 input::-webkit-input-placeholder {
652 -webkit-user-modify: read-only !important;
655 input[type="password"] {
656 -webkit-text-security: disc !important;
659 input[type="hidden"], input[type="image"], input[type="file"] {
660 -webkit-appearance: initial;
662 background-color: initial;
667 align-items: baseline;
669 text-align: start !important;
672 input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
673 background-color: #FAFFBD !important;
674 background-image:none !important;
675 color: #000000 !important;
678 input[type="radio"], input[type="checkbox"] {
681 background-color: initial;
685 input[type="button"], input[type="submit"], input[type="reset"] {
686 -webkit-appearance: push-button;
687 -webkit-user-select: none;
691 input[type="file"]::-webkit-file-upload-button {
692 -webkit-appearance: push-button;
693 -webkit-user-modify: read-only !important;
699 input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button {
700 align-items: flex-start;
704 padding: 2px 6px 3px 6px;
705 border: 2px outset ButtonFace;
706 background-color: ButtonFace;
707 box-sizing: border-box
710 input[type="range"] {
711 -webkit-appearance: slider-horizontal;
718 input[type="range"]::-webkit-slider-container, input[type="range"]::-webkit-media-slider-container {
720 box-sizing: border-box;
721 -webkit-user-modify: read-only !important;
723 -webkit-align-contents: center;
726 input[type="range"]::-webkit-slider-runnable-track {
728 -webkit-align-self: center;
730 box-sizing: border-box;
731 -webkit-user-modify: read-only !important;
735 input[type="range"]::-webkit-slider-thumb, input[type="range"]::-webkit-media-slider-thumb {
736 -webkit-appearance: sliderthumb-horizontal;
737 box-sizing: border-box;
738 -webkit-user-modify: read-only !important;
742 input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled,
743 input[type="file"]:disabled::-webkit-file-upload-button, button:disabled,
744 select:disabled, keygen:disabled, optgroup:disabled, option:disabled,
745 select[disabled]>option {
749 input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]:active::-webkit-file-upload-button, button:active {
753 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 {
765 input[type="checkbox"] {
766 -webkit-appearance: checkbox;
767 box-sizing: border-box;
770 input[type="radio"] {
771 -webkit-appearance: radio;
772 box-sizing: border-box;
775 input[type="color"] {
776 -webkit-appearance: square-button;
779 background-color: ButtonFace;
780 /* Same as native_theme_base. */
781 border: 1px #a9a9a9 solid;
785 input[type="color"]::-webkit-color-swatch-wrapper {
788 box-sizing: border-box;
789 -webkit-user-modify: read-only !important;
794 input[type="color"]::-webkit-color-swatch {
795 background-color: #000000;
796 border: 1px solid #777777;
798 -webkit-user-modify: read-only !important;
801 input[type="color"][list] {
802 -webkit-appearance: menulist;
807 input[type="color"][list]::-webkit-color-swatch-wrapper {
812 input[type="color"][list]::-webkit-color-swatch {
813 border-color: #000000;
816 input::-webkit-calendar-picker-indicator {
817 display: inline-block;
820 padding: 0.17em 0.34em;
821 -webkit-user-modify: read-only !important;
823 pointer-events: none;
826 input::-webkit-calendar-picker-indicator:hover {
827 background-color: #eee;
830 input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-calendar-picker-indicator {
832 pointer-events: auto;
835 input[type="date"]:disabled::-webkit-clear-button,
836 input[type="date"]:disabled::-webkit-inner-spin-button,
837 input[type="datetime-local"]:disabled::-webkit-clear-button,
838 input[type="datetime-local"]:disabled::-webkit-inner-spin-button,
839 input[type="month"]:disabled::-webkit-clear-button,
840 input[type="month"]:disabled::-webkit-inner-spin-button,
841 input[type="week"]:disabled::-webkit-clear-button,
842 input[type="week"]:disabled::-webkit-inner-spin-button,
843 input:disabled::-webkit-calendar-picker-indicator,
844 input[type="date"][readonly]::-webkit-clear-button,
845 input[type="date"][readonly]::-webkit-inner-spin-button,
846 input[type="datetime-local"][readonly]::-webkit-clear-button,
847 input[type="datetime-local"][readonly]::-webkit-inner-spin-button,
848 input[type="month"][readonly]::-webkit-clear-button,
849 input[type="month"][readonly]::-webkit-inner-spin-button,
850 input[type="week"][readonly]::-webkit-clear-button,
851 input[type="week"][readonly]::-webkit-inner-spin-button,
852 input[readonly]::-webkit-calendar-picker-indicator {
857 -webkit-appearance: menulist;
858 box-sizing: border-box;
862 -webkit-rtl-ordering: logical;
864 background-color: white;
870 select[size][multiple] {
871 -webkit-appearance: listbox;
872 align-items: flex-start;
873 border: 1px inset gray;
874 border-radius: initial;
875 white-space: initial;
880 -webkit-appearance: menulist;
902 -webkit-appearance: meter;
903 box-sizing: border-box;
904 display: inline-block;
907 vertical-align: -0.2em;
910 meter::-webkit-meter-inner-element {
911 -webkit-appearance: inherit;
913 -webkit-user-modify: read-only !important;
918 meter::-webkit-meter-bar {
919 background: linear-gradient(to bottom, #ddd, #eee 20%, #ccc 45%, #ccc 55%, #ddd);
922 -webkit-user-modify: read-only !important;
923 box-sizing: border-box;
926 meter::-webkit-meter-optimum-value {
927 background: linear-gradient(to bottom, #ad7, #cea 20%, #7a3 45%, #7a3 55%, #ad7);
929 -webkit-user-modify: read-only !important;
930 box-sizing: border-box;
933 meter::-webkit-meter-suboptimum-value {
934 background: linear-gradient(to bottom, #fe7, #ffc 20%, #db3 45%, #db3 55%, #fe7);
936 -webkit-user-modify: read-only !important;
937 box-sizing: border-box;
940 meter::-webkit-meter-even-less-good-value {
941 background: linear-gradient(to bottom, #f77, #fcc 20%, #d44 45%, #d44 55%, #f77);
943 -webkit-user-modify: read-only !important;
944 box-sizing: border-box;
950 -webkit-appearance: progress-bar;
951 box-sizing: border-box;
952 display: inline-block;
955 vertical-align: -0.2em;
958 progress::-webkit-progress-inner-element {
959 -webkit-appearance: inherit;
961 -webkit-user-modify: read-only;
966 progress::-webkit-progress-bar {
967 background-color: gray;
970 -webkit-user-modify: read-only !important;
971 box-sizing: border-box;
974 progress::-webkit-progress-value {
975 background-color: green;
977 width: 50%; /* should be removed later */
978 -webkit-user-modify: read-only !important;
979 box-sizing: border-box;
982 /* inline elements */
985 text-decoration: underline
992 i, cite, em, var, address, dfn {
996 tt, code, kbd, samp {
997 font-family: monospace
1000 pre, xmp, plaintext, listing {
1002 font-family: monospace;
1008 background-color: yellow;
1021 text-decoration: line-through
1025 vertical-align: sub;
1030 vertical-align: super;
1041 outline: auto 5px -webkit-focus-ring-color
1044 /* Read-only text fields do not show a focus ring but do still receive focus */
1045 html:focus, body:focus, input[readonly]:focus {
1049 applet:focus, embed:focus, iframe:focus, object:focus {
1053 input:focus, textarea:focus, keygen:focus, select:focus {
1054 outline-offset: -2px
1057 input[type="button"]:focus,
1058 input[type="checkbox"]:focus,
1059 input[type="file"]:focus,
1060 input[type="hidden"]:focus,
1061 input[type="image"]:focus,
1062 input[type="radio"]:focus,
1063 input[type="reset"]:focus,
1064 input[type="search"]:focus,
1065 input[type="submit"]:focus,
1066 input[type="file"]:focus::-webkit-file-upload-button {
1070 a:-webkit-any-link {
1071 color: -webkit-link;
1072 text-decoration: underline;
1076 a:-webkit-any-link:active {
1077 color: -webkit-activelink
1080 /* HTML5 ruby elements */
1083 text-indent: 0; /* blocks used for ruby rendering should not trigger this */
1087 line-height: normal;
1088 -webkit-text-emphasis: none;
1101 /* other elements */
1112 border-color: inherit
1127 summary::-webkit-details-marker {
1128 display: inline-block;
1131 margin-right: 0.4em;
1139 unicode-bidi: -webkit-isolate;
1143 unicode-bidi: bidi-override;
1146 textarea[dir=auto] {
1147 unicode-bidi: -webkit-plaintext;
1153 /* FIXME: Define the right default values for page properties. */
1160 /* noscript is handled internally, as it depends on settings. */