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" i] {
415 input, input[type="password" i], input[type="search" i] {
416 -webkit-appearance: textfield;
418 background-color: white;
420 -webkit-rtl-ordering: logical;
421 -webkit-user-select: text;
425 input[type="search" i] {
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" i]::-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" i]::-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" i]:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-search-cancel-button {
468 pointer-events: auto;
471 input[type="search" i]::-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" i]::-webkit-search-results-decoration {
481 -webkit-appearance: searchfield-results-decoration;
484 -webkit-user-modify: read-only !important;
485 -webkit-align-self: flex-start;
489 input::-webkit-inner-spin-button {
490 -webkit-appearance: inner-spin-button;
491 display: inline-block;
495 -webkit-user-select: none;
496 -webkit-user-modify: read-only !important;
498 pointer-events: none;
501 input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-inner-spin-button {
503 pointer-events: auto;
510 keygen::-webkit-keygen-select {
515 -webkit-appearance: textarea;
516 background-color: white;
518 -webkit-rtl-ordering: logical;
519 -webkit-user-select: text;
520 flex-direction: column;
524 white-space: pre-wrap;
525 word-wrap: break-word;
528 ::-webkit-input-placeholder {
529 -webkit-text-security: none;
531 display: block !important;
532 pointer-events: none !important;
535 input::-webkit-input-placeholder {
539 -webkit-user-modify: read-only !important;
542 input[type="password" i] {
543 -webkit-text-security: disc !important;
546 input[type="hidden" i], input[type="image" i], input[type="file" i] {
547 -webkit-appearance: initial;
549 background-color: initial;
553 input[type="file" i] {
554 align-items: baseline;
556 text-align: start !important;
559 input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
560 background-color: #FAFFBD !important;
561 background-image:none !important;
562 color: #000000 !important;
565 input[type="radio" i], input[type="checkbox" i] {
568 background-color: initial;
572 input[type="button" i], input[type="submit" i], input[type="reset" i] {
573 -webkit-appearance: push-button;
574 -webkit-user-select: none;
578 input[type="file" i]::-webkit-file-upload-button {
579 -webkit-appearance: push-button;
580 -webkit-user-modify: read-only !important;
586 input[type="button" i], input[type="submit" i], input[type="reset" i], input[type="file" i]::-webkit-file-upload-button, button {
587 align-items: flex-start;
591 padding: 2px 6px 3px 6px;
592 border: 2px outset ButtonFace;
593 background-color: ButtonFace;
594 box-sizing: border-box
597 input[type="range" i] {
598 -webkit-appearance: slider-horizontal;
605 input[type="range" i]::-webkit-slider-container, input[type="range" i]::-webkit-media-slider-container {
607 box-sizing: border-box;
608 -webkit-user-modify: read-only !important;
610 -webkit-align-contents: center;
613 input[type="range" i]::-webkit-slider-runnable-track {
615 -webkit-align-self: center;
617 box-sizing: border-box;
618 -webkit-user-modify: read-only !important;
622 input[type="range" i]::-webkit-slider-thumb, input[type="range" i]::-webkit-media-slider-thumb {
623 -webkit-appearance: sliderthumb-horizontal;
624 box-sizing: border-box;
625 -webkit-user-modify: read-only !important;
629 input[type="button" i]:disabled, input[type="submit" i]:disabled, input[type="reset" i]:disabled,
630 input[type="file" i]:disabled::-webkit-file-upload-button, button:disabled,
631 select:disabled, keygen:disabled, optgroup:disabled, option:disabled,
632 select[disabled]>option {
636 input[type="button" i]:active, input[type="submit" i]:active, input[type="reset" i]:active, input[type="file" i]:active::-webkit-file-upload-button, button:active {
640 input[type="button" i]:active:disabled, input[type="submit" i]:active:disabled, input[type="reset" i]:active:disabled, input[type="file" i]:active:disabled::-webkit-file-upload-button, button:active:disabled {
644 option:-internal-spatial-navigation-focus {
645 outline: black dashed 1px;
646 outline-offset: -1px;
657 input[type="checkbox" i] {
658 -webkit-appearance: checkbox;
659 box-sizing: border-box;
662 input[type="radio" i] {
663 -webkit-appearance: radio;
664 box-sizing: border-box;
667 input[type="color" i] {
668 -webkit-appearance: square-button;
671 background-color: ButtonFace;
672 /* Same as native_theme_base. */
673 border: 1px #a9a9a9 solid;
677 input[type="color" i]::-webkit-color-swatch-wrapper {
680 box-sizing: border-box;
681 -webkit-user-modify: read-only !important;
686 input[type="color" i]::-webkit-color-swatch {
687 background-color: #000000;
688 border: 1px solid #777777;
690 -webkit-user-modify: read-only !important;
693 input[type="color" i][list] {
694 -webkit-appearance: menulist;
699 input[type="color" i][list]::-webkit-color-swatch-wrapper {
704 input[type="color" i][list]::-webkit-color-swatch {
705 border-color: #000000;
708 input::-webkit-calendar-picker-indicator {
709 display: inline-block;
712 padding: 0.17em 0.34em;
713 -webkit-user-modify: read-only !important;
715 pointer-events: none;
718 input::-webkit-calendar-picker-indicator:hover {
719 background-color: #eee;
722 input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-calendar-picker-indicator {
724 pointer-events: auto;
727 input[type="date" i]:disabled::-webkit-clear-button,
728 input[type="date" i]:disabled::-webkit-inner-spin-button,
729 input[type="datetime-local" i]:disabled::-webkit-clear-button,
730 input[type="datetime-local" i]:disabled::-webkit-inner-spin-button,
731 input[type="month" i]:disabled::-webkit-clear-button,
732 input[type="month" i]:disabled::-webkit-inner-spin-button,
733 input[type="week" i]:disabled::-webkit-clear-button,
734 input[type="week" i]:disabled::-webkit-inner-spin-button,
735 input:disabled::-webkit-calendar-picker-indicator,
736 input[type="date" i][readonly]::-webkit-clear-button,
737 input[type="date" i][readonly]::-webkit-inner-spin-button,
738 input[type="datetime-local" i][readonly]::-webkit-clear-button,
739 input[type="datetime-local" i][readonly]::-webkit-inner-spin-button,
740 input[type="month" i][readonly]::-webkit-clear-button,
741 input[type="month" i][readonly]::-webkit-inner-spin-button,
742 input[type="week" i][readonly]::-webkit-clear-button,
743 input[type="week" i][readonly]::-webkit-inner-spin-button,
744 input[readonly]::-webkit-calendar-picker-indicator {
749 -webkit-appearance: menulist;
750 box-sizing: border-box;
754 -webkit-rtl-ordering: logical;
756 background-color: white;
760 select:-internal-list-box {
761 -webkit-appearance: listbox;
762 align-items: flex-start;
763 border: 1px inset gray;
764 border-radius: initial;
767 vertical-align: text-bottom;
768 -webkit-user-select: none;
780 padding: 0 2px 1px 2px;
785 select:-internal-list-box:focus option:checked {
786 background-color: -internal-active-list-box-selection !important;
787 color: -internal-active-list-box-selection-text !important;
790 select:-internal-list-box option:checked {
791 background-color: -internal-inactive-list-box-selection !important;
792 color: -internal-inactive-list-box-selection-text !important;
795 select:-internal-list-box:disabled option:checked,
796 select:-internal-list-box option:checked:disabled {
797 color: gray !important;
808 -webkit-appearance: meter;
809 box-sizing: border-box;
810 display: inline-block;
813 vertical-align: -0.2em;
816 meter::-webkit-meter-inner-element {
817 -webkit-appearance: inherit;
819 -webkit-user-modify: read-only !important;
824 meter::-webkit-meter-bar {
825 background: linear-gradient(to bottom, #ddd, #eee 20%, #ccc 45%, #ccc 55%, #ddd);
828 -webkit-user-modify: read-only !important;
829 box-sizing: border-box;
832 meter::-webkit-meter-optimum-value {
833 background: linear-gradient(to bottom, #ad7, #cea 20%, #7a3 45%, #7a3 55%, #ad7);
835 -webkit-user-modify: read-only !important;
836 box-sizing: border-box;
839 meter::-webkit-meter-suboptimum-value {
840 background: linear-gradient(to bottom, #fe7, #ffc 20%, #db3 45%, #db3 55%, #fe7);
842 -webkit-user-modify: read-only !important;
843 box-sizing: border-box;
846 meter::-webkit-meter-even-less-good-value {
847 background: linear-gradient(to bottom, #f77, #fcc 20%, #d44 45%, #d44 55%, #f77);
849 -webkit-user-modify: read-only !important;
850 box-sizing: border-box;
856 -webkit-appearance: progress-bar;
857 box-sizing: border-box;
858 display: inline-block;
861 vertical-align: -0.2em;
864 progress::-webkit-progress-inner-element {
865 -webkit-appearance: inherit;
867 -webkit-user-modify: read-only;
872 progress::-webkit-progress-bar {
873 background-color: gray;
876 -webkit-user-modify: read-only !important;
877 box-sizing: border-box;
880 progress::-webkit-progress-value {
881 background-color: green;
883 width: 50%; /* should be removed later */
884 -webkit-user-modify: read-only !important;
885 box-sizing: border-box;
888 /* inline elements */
891 text-decoration: underline
898 i, cite, em, var, address, dfn {
902 tt, code, kbd, samp {
903 font-family: monospace
906 pre, xmp, plaintext, listing {
908 font-family: monospace;
914 background-color: yellow;
927 text-decoration: line-through
936 vertical-align: super;
947 outline: auto 5px -webkit-focus-ring-color
950 /* Read-only text fields do not show a focus ring but do still receive focus */
951 html:focus, body:focus, input[readonly]:focus {
955 applet:focus, embed:focus, iframe:focus, object:focus {
959 input:focus, textarea:focus, keygen:focus, select:focus {
963 input[type="button" i]:focus,
964 input[type="checkbox" i]:focus,
965 input[type="file" i]:focus,
966 input[type="hidden" i]:focus,
967 input[type="image" i]:focus,
968 input[type="radio" i]:focus,
969 input[type="reset" i]:focus,
970 input[type="search" i]:focus,
971 input[type="submit" i]:focus,
972 input[type="file" i]:focus::-webkit-file-upload-button {
978 text-decoration: underline;
982 a:-webkit-any-link:active {
983 color: -webkit-activelink
986 /* HTML5 ruby elements */
989 text-indent: 0; /* blocks used for ruby rendering should not trigger this */
994 -webkit-text-emphasis: none;
1007 /* other elements */
1018 border-color: inherit
1033 summary::-webkit-details-marker {
1034 display: inline-block;
1037 -webkit-margin-end: 0.4em;
1045 unicode-bidi: -webkit-isolate;
1049 unicode-bidi: bidi-override;
1052 textarea[dir=auto i] {
1053 unicode-bidi: -webkit-plaintext;
1059 /* FIXME: Define the right default values for page properties. */
1066 /* noscript is handled internally, as it depends on settings. */