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 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 */
75 article, aside, footer, header, hgroup, nav, section {
80 display: inline-block;
81 overflow: -webkit-marquee
90 margin: 1__qem 40px 1em 40px
99 /* FIXME: content: open-quote; */
104 /* FIXME: content: close-quote; */
109 /* special centering to be able to emulate the html4/netscape behaviour */
110 text-align: -webkit-center
124 /* heading elements */
129 margin: .67__qem 0 .67em 0;
136 margin: .83__qem 0 .83em 0;
143 margin: 1__qem 0 1em 0;
149 margin: 1.33__qem 0 1.33em 0;
156 margin: 1.67__qem 0 1.67em 0;
163 margin: 2.33__qem 0 2.33em 0;
171 border-collapse: separate;
177 display: table-header-group;
178 vertical-align: middle;
179 border-color: inherit
183 display: table-row-group;
184 vertical-align: middle;
185 border-color: inherit
189 display: table-footer-group;
190 vertical-align: middle;
191 border-color: inherit
194 /* for tables without table section elements (can happen with XHTML or dynamically created tables) */
196 vertical-align: middle;
200 display: table-column
204 display: table-column-group
209 vertical-align: inherit;
210 border-color: inherit
215 vertical-align: inherit
223 display: table-caption;
224 text-align: -webkit-center
231 list-style-type: disc;
232 margin: 1__qem 0 1em 0;
233 -webkit-padding-start: 40px
238 list-style-type: decimal;
239 margin: 1__qem 0 1em 0;
240 -webkit-padding-start: 40px
248 list-style-type: circle
251 ol ol ul, ol ul ul, ul ol ul, ul ul ul {
252 list-style-type: square
257 -webkit-margin-start: 40px
262 margin: 1__qem 0 1em 0
269 ol ul, ul ol, ul ul, ol ol {
296 padding: 0.35em 0.75em 0.625em;
297 border: 2px groove ThreeDFace
301 -webkit-appearance: button;
304 input, textarea, keygen, select, button, isindex, datagrid {
306 font: -webkit-small-control;
308 letter-spacing: normal;
309 word-spacing: normal;
311 text-transform: none;
314 display: inline-block;
315 text-align: -webkit-auto;
318 input[type="hidden"] {
322 input, input[type="password"], input[type="search"], isindex {
323 -webkit-appearance: textfield;
325 background-color: white;
327 -webkit-rtl-ordering: logical;
328 -webkit-user-select: text;
332 input[type="search"] {
333 -webkit-appearance: searchfield;
334 -webkit-box-sizing: border-box;
337 input[type="search"]::-webkit-search-cancel-button {
338 -webkit-appearance: searchfield-cancel-button;
339 display: inline-block;
342 input[type="search"]::-webkit-search-decoration {
343 -webkit-appearance: searchfield-decoration;
344 display: inline-block;
347 input[type="search"]::-webkit-search-results-decoration {
348 -webkit-appearance: searchfield-results-decoration;
349 display: inline-block;
352 input[type="search"]::-webkit-search-results-button {
353 -webkit-appearance: searchfield-results-button;
354 display: inline-block;
357 input::-webkit-input-list-button {
358 -webkit-appearance: list-button;
359 display: inline-block;
362 input::-webkit-inner-spin-button {
363 -webkit-appearance: inner-spin-button;
364 display: inline-block;
365 -webkit-user-select: none;
368 input::-webkit-outer-spin-button {
369 -webkit-appearance: outer-spin-button;
370 display: inline-block;
372 -webkit-user-select: none;
375 input::-webkit-input-speech-button {
376 -webkit-appearance: input-speech-button;
377 display: inline-block;
381 -webkit-appearance: textarea;
382 background-color: white;
384 -webkit-rtl-ordering: logical;
385 -webkit-user-select: text;
386 -webkit-box-orient: vertical;
390 white-space: pre-wrap;
391 word-wrap: break-word;
394 input::-webkit-input-placeholder, isindex::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
398 input[type="password"] {
399 -webkit-text-security: disc !important;
402 input[type="hidden"], input[type="image"], input[type="file"] {
403 -webkit-appearance: initial;
405 background-color: initial;
410 -webkit-box-align: baseline;
411 text-align: start !important;
414 input:-webkit-autofill {
415 background-color: #FAFFBD !important;
416 background-image:none !important;
419 input[type="radio"], input[type="checkbox"] {
422 background-color: initial;
426 input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button {
427 -webkit-appearance: push-button;
431 input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button {
432 -webkit-box-align: center;
436 padding: 2px 6px 3px 6px;
437 border: 2px outset ButtonFace;
438 background-color: ButtonFace;
439 -webkit-box-sizing: border-box
442 input[type="range"] {
443 -webkit-appearance: slider-horizontal;
449 input[type="range"]::-webkit-slider-thumb {
450 -webkit-appearance: sliderthumb-horizontal;
453 input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled,
454 input[type="file"]:disabled::-webkit-file-upload-button, button:disabled,
455 select:disabled, keygen:disabled, optgroup:disabled, option:disabled, datagrid:disabled {
459 input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]:active::-webkit-file-upload-button, button:active {
463 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 {
471 input[type="checkbox"] {
472 -webkit-appearance: checkbox;
473 -webkit-box-sizing: border-box;
476 input[type="radio"] {
477 -webkit-appearance: radio;
478 -webkit-box-sizing: border-box;
482 -webkit-appearance: menulist;
483 -webkit-box-sizing: border-box;
484 -webkit-box-align: center;
486 -webkit-border-radius: 5px;
488 -webkit-rtl-ordering: logical;
490 background-color: white;
496 select[size][multiple] {
497 -webkit-appearance: listbox;
498 -webkit-box-align: start;
499 border: 1px inset gray;
500 -webkit-border-radius: initial;
501 white-space: initial;
506 -webkit-appearance: menulist;
507 -webkit-box-align: center;
509 -webkit-border-radius: 5px;
528 -webkit-appearance: meter;
529 display: inline-block;
532 vertical-align: -0.2em;
535 meter::-webkit-meter {
536 -webkit-appearance: meter;
539 meter::-webkit-meter-horizontal-bar {
540 -webkit-appearance: meter;
541 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));
544 meter::-webkit-meter-vertical-bar {
545 -webkit-appearance: meter;
546 background: -webkit-gradient(linear, left top, right top, from(#ddd), to(#ddd), color-stop(0.20, #eee), color-stop(0.45, #ccc), color-stop(0.55, #ccc));
549 meter::-webkit-meter-horizontal-optimum-value {
550 -webkit-appearance: meter;
551 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));
554 meter::-webkit-meter-horizontal-suboptimal-value {
555 -webkit-appearance: meter;
556 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));
559 meter::-webkit-meter-horizontal-even-less-good-value {
560 -webkit-appearance: meter;
561 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));
564 meter::-webkit-meter-vertical-optimum-value {
565 -webkit-appearance: meter;
566 background: -webkit-gradient(linear, left top, right top, from(#ad7), to(#ad7), color-stop(0.20, #cea), color-stop(0.45, #7a3), color-stop(0.55, #7a3));
569 meter::-webkit-meter-vertical-suboptimal-value {
570 -webkit-appearance: meter;
571 background: -webkit-gradient(linear, left top, right top, from(#fe7), to(#fe7), color-stop(0.20, #ffc), color-stop(0.45, #db3), color-stop(0.55, #db3));
574 meter::-webkit-meter-vertical-even-less-good-value {
575 -webkit-appearance: meter;
576 background: -webkit-gradient(linear, left top, right top, from(#f77), to(#f77), color-stop(0.20, #fcc), color-stop(0.45, #d44), color-stop(0.55, #d44));
582 -webkit-appearance: progress-bar;
583 display: inline-block;
586 vertical-align: -0.2em;
587 background-color: gray;
590 progress::-webkit-progress-bar-value {
591 -webkit-appearance: progress-bar;
592 background-color: green;
598 height: 150px; /* We don't use width:300px in CSS, since we want width:intrinsic and width:min-intrinsic to reset to 300 properly. */
599 -webkit-appearance: datagrid;
600 -webkit-box-sizing: border-box;
601 -webkit-rtl-ordering: logical;
603 background-color: white;
605 border: 1px inset gray;
606 white-space: initial;
609 /* inline elements */
612 text-decoration: underline
619 i, cite, em, var, address {
623 tt, code, kbd, samp {
624 font-family: monospace
627 pre, xmp, plaintext, listing {
629 font-family: monospace;
635 background-color: yellow;
648 text-decoration: line-through
657 vertical-align: super;
668 outline: auto 5px -webkit-focus-ring-color
671 /* Read-only text fields do not show a focus ring but do still receive focus */
672 html:focus, body:focus, input[readonly]:focus {
676 input:focus, textarea:focus, isindex:focus, keygen:focus, select:focus {
680 input[type="button"]:focus,
681 input[type="checkbox"]:focus,
682 input[type="file"]:focus,
683 input[type="hidden"]:focus,
684 input[type="image"]:focus,
685 input[type="radio"]:focus,
686 input[type="reset"]:focus,
687 input[type="search"]:focus,
688 input[type="submit"]:focus,
689 input[type="file"]:focus::-webkit-file-upload-button {
695 text-decoration: underline;
699 a:-webkit-any-link:active {
700 color: -webkit-activelink
703 /* HTML5 ruby elements */
706 text-indent: 0; /* blocks used for ruby rendering should not trigger this */
712 font-size: 60%; /* make slightly larger than 50% for better readability */
731 border-color: inherit
741 /* FIXME: Define the right default values for page properties. */
748 /* noscript is handled internally, as it depends on settings */