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 {
287 -webkit-padding-start: 2px;
288 -webkit-padding-end: 2px;
294 -webkit-margin-start: 2px;
295 -webkit-margin-end: 2px;
296 -webkit-padding-before: 0.35em;
297 -webkit-padding-start: 0.75em;
298 -webkit-padding-end: 0.75em;
299 -webkit-padding-after: 0.625em;
300 border: 2px groove ThreeDFace
304 -webkit-appearance: button;
307 /* Form controls don't go vertical. */
308 input, textarea, keygen, select, button, isindex, meter, progress {
309 -webkit-block-flow: tb !important;
312 input, textarea, keygen, select, button, isindex, datagrid {
314 font: -webkit-small-control;
316 letter-spacing: normal;
317 word-spacing: normal;
319 text-transform: none;
322 display: inline-block;
323 text-align: -webkit-auto;
326 input[type="hidden"] {
330 input, input[type="password"], input[type="search"], isindex {
331 -webkit-appearance: textfield;
333 background-color: white;
335 -webkit-rtl-ordering: logical;
336 -webkit-user-select: text;
340 input[type="search"] {
341 -webkit-appearance: searchfield;
342 -webkit-box-sizing: border-box;
345 input[type="search"]::-webkit-search-cancel-button {
346 -webkit-appearance: searchfield-cancel-button;
347 display: inline-block;
350 input[type="search"]::-webkit-search-decoration {
351 -webkit-appearance: searchfield-decoration;
352 display: inline-block;
355 input[type="search"]::-webkit-search-results-decoration {
356 -webkit-appearance: searchfield-results-decoration;
357 display: inline-block;
360 input[type="search"]::-webkit-search-results-button {
361 -webkit-appearance: searchfield-results-button;
362 display: inline-block;
365 input::-webkit-input-list-button {
366 -webkit-appearance: list-button;
367 display: inline-block;
370 input::-webkit-inner-spin-button {
371 -webkit-appearance: inner-spin-button;
372 display: inline-block;
373 -webkit-user-select: none;
376 input::-webkit-outer-spin-button {
377 -webkit-appearance: outer-spin-button;
378 display: inline-block;
380 -webkit-user-select: none;
383 input::-webkit-input-speech-button {
384 -webkit-appearance: -webkit-input-speech-button;
385 display: inline-block;
389 -webkit-appearance: textarea;
390 background-color: white;
392 -webkit-rtl-ordering: logical;
393 -webkit-user-select: text;
394 -webkit-box-orient: vertical;
398 white-space: pre-wrap;
399 word-wrap: break-word;
402 input::-webkit-input-placeholder, isindex::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
406 input[type="password"] {
407 -webkit-text-security: disc !important;
410 input[type="hidden"], input[type="image"], input[type="file"] {
411 -webkit-appearance: initial;
413 background-color: initial;
418 -webkit-box-align: baseline;
419 text-align: start !important;
422 input:-webkit-autofill {
423 background-color: #FAFFBD !important;
424 background-image:none !important;
427 input[type="radio"], input[type="checkbox"] {
430 background-color: initial;
434 input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button {
435 -webkit-appearance: push-button;
439 input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button {
440 -webkit-box-align: center;
444 padding: 2px 6px 3px 6px;
445 border: 2px outset ButtonFace;
446 background-color: ButtonFace;
447 -webkit-box-sizing: border-box
450 input[type="range"] {
451 -webkit-appearance: slider-horizontal;
457 input[type="range"]::-webkit-slider-thumb {
458 -webkit-appearance: sliderthumb-horizontal;
461 input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled,
462 input[type="file"]:disabled::-webkit-file-upload-button, button:disabled,
463 select:disabled, keygen:disabled, optgroup:disabled, option:disabled, datagrid:disabled {
467 input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]:active::-webkit-file-upload-button, button:active {
471 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 {
479 input[type="checkbox"] {
480 -webkit-appearance: checkbox;
481 -webkit-box-sizing: border-box;
484 input[type="radio"] {
485 -webkit-appearance: radio;
486 -webkit-box-sizing: border-box;
490 -webkit-appearance: menulist;
491 -webkit-box-sizing: border-box;
492 -webkit-box-align: center;
494 -webkit-border-radius: 5px;
496 -webkit-rtl-ordering: logical;
498 background-color: white;
504 select[size][multiple] {
505 -webkit-appearance: listbox;
506 -webkit-box-align: start;
507 border: 1px inset gray;
508 -webkit-border-radius: initial;
509 white-space: initial;
514 -webkit-appearance: menulist;
515 -webkit-box-align: center;
517 -webkit-border-radius: 5px;
540 -webkit-appearance: meter;
541 display: inline-block;
544 vertical-align: -0.2em;
547 meter::-webkit-meter {
548 -webkit-appearance: meter;
551 meter::-webkit-meter-horizontal-bar {
552 -webkit-appearance: meter;
553 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));
556 meter::-webkit-meter-vertical-bar {
557 -webkit-appearance: meter;
558 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));
561 meter::-webkit-meter-horizontal-optimum-value {
562 -webkit-appearance: meter;
563 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));
566 meter::-webkit-meter-horizontal-suboptimal-value {
567 -webkit-appearance: meter;
568 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));
571 meter::-webkit-meter-horizontal-even-less-good-value {
572 -webkit-appearance: meter;
573 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));
576 meter::-webkit-meter-vertical-optimum-value {
577 -webkit-appearance: meter;
578 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));
581 meter::-webkit-meter-vertical-suboptimal-value {
582 -webkit-appearance: meter;
583 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));
586 meter::-webkit-meter-vertical-even-less-good-value {
587 -webkit-appearance: meter;
588 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));
594 -webkit-appearance: progress-bar;
595 display: inline-block;
598 vertical-align: -0.2em;
599 background-color: gray;
602 progress::-webkit-progress-bar-value {
603 -webkit-appearance: progress-bar;
604 background-color: green;
610 height: 150px; /* We don't use width:300px in CSS, since we want width:intrinsic and width:min-intrinsic to reset to 300 properly. */
611 -webkit-appearance: datagrid;
612 -webkit-box-sizing: border-box;
613 -webkit-rtl-ordering: logical;
615 background-color: white;
617 border: 1px inset gray;
618 white-space: initial;
621 /* inline elements */
624 text-decoration: underline
631 i, cite, em, var, address {
635 tt, code, kbd, samp {
636 font-family: monospace
639 pre, xmp, plaintext, listing {
641 font-family: monospace;
647 background-color: yellow;
660 text-decoration: line-through
669 vertical-align: super;
680 outline: auto 5px -webkit-focus-ring-color
683 /* Read-only text fields do not show a focus ring but do still receive focus */
684 html:focus, body:focus, input[readonly]:focus {
688 input:focus, textarea:focus, isindex:focus, keygen:focus, select:focus {
692 input[type="button"]:focus,
693 input[type="checkbox"]:focus,
694 input[type="file"]:focus,
695 input[type="hidden"]:focus,
696 input[type="image"]:focus,
697 input[type="radio"]:focus,
698 input[type="reset"]:focus,
699 input[type="search"]:focus,
700 input[type="submit"]:focus,
701 input[type="file"]:focus::-webkit-file-upload-button {
707 text-decoration: underline;
711 a:-webkit-any-link:active {
712 color: -webkit-activelink
715 /* HTML5 ruby elements */
718 text-indent: 0; /* blocks used for ruby rendering should not trigger this */
724 font-size: 60%; /* make slightly larger than 50% for better readability */
743 border-color: inherit
753 /* FIXME: Define the right default values for page properties. */
760 /* noscript is handled internally, as it depends on settings */