Last active
December 14, 2020 22:30
-
-
Save dgrammatiko/55788620360d83be6e5c6a438be8134d to your computer and use it in GitHub Desktop.
Default UA stylesheets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://chromium.googlesource.com/chromium/blink/+/master/Source/core/css/html.css | |
/* | |
* The default style sheet used to render HTML. | |
* | |
* Copyright (C) 2000 Lars Knoll ([email protected]) | |
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Library General Public | |
* License as published by the Free Software Foundation; either | |
* version 2 of the License, or (at your option) any later version. | |
* | |
* This library is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
* Library General Public License for more details. | |
* | |
* You should have received a copy of the GNU Library General Public License | |
* along with this library; see the file COPYING.LIB. If not, write to | |
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
* Boston, MA 02110-1301, USA. | |
* | |
*/ | |
@namespace "http://www.w3.org/1999/xhtml"; | |
html { | |
display: block | |
} | |
/* children of the <head> element all have display:none */ | |
head { | |
display: none | |
} | |
meta { | |
display: none | |
} | |
title { | |
display: none | |
} | |
link { | |
display: none | |
} | |
style { | |
display: none | |
} | |
script { | |
display: none | |
} | |
/* generic block-level elements */ | |
body { | |
display: block; | |
margin: 8px | |
} | |
body:-webkit-full-page-media { | |
background-color: rgb(0, 0, 0) | |
} | |
p { | |
display: block; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1__qem; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
} | |
div { | |
display: block | |
} | |
layer { | |
display: block | |
} | |
article, aside, footer, header, hgroup, main, nav, section { | |
display: block | |
} | |
marquee { | |
display: inline-block; | |
} | |
address { | |
display: block | |
} | |
blockquote { | |
display: block; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1em; | |
-webkit-margin-start: 40px; | |
-webkit-margin-end: 40px; | |
} | |
figcaption { | |
display: block | |
} | |
figure { | |
display: block; | |
-webkit-margin-before: 1em; | |
-webkit-margin-after: 1em; | |
-webkit-margin-start: 40px; | |
-webkit-margin-end: 40px; | |
} | |
q { | |
display: inline | |
} | |
q:before { | |
content: open-quote; | |
} | |
q:after { | |
content: close-quote; | |
} | |
center { | |
display: block; | |
/* special centering to be able to emulate the html4/netscape behaviour */ | |
text-align: -webkit-center | |
} | |
hr { | |
display: block; | |
-webkit-margin-before: 0.5em; | |
-webkit-margin-after: 0.5em; | |
-webkit-margin-start: auto; | |
-webkit-margin-end: auto; | |
border-style: inset; | |
border-width: 1px | |
} | |
map { | |
display: inline | |
} | |
video { | |
object-fit: contain; | |
} | |
/* heading elements */ | |
h1 { | |
display: block; | |
font-size: 2em; | |
-webkit-margin-before: 0.67__qem; | |
-webkit-margin-after: 0.67em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
font-weight: bold | |
} | |
:-webkit-any(article,aside,nav,section) h1 { | |
font-size: 1.5em; | |
-webkit-margin-before: 0.83__qem; | |
-webkit-margin-after: 0.83em; | |
} | |
:-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 { | |
font-size: 1.17em; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1em; | |
} | |
:-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 { | |
font-size: 1.00em; | |
-webkit-margin-before: 1.33__qem; | |
-webkit-margin-after: 1.33em; | |
} | |
:-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 { | |
font-size: .83em; | |
-webkit-margin-before: 1.67__qem; | |
-webkit-margin-after: 1.67em; | |
} | |
:-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 { | |
font-size: .67em; | |
-webkit-margin-before: 2.33__qem; | |
-webkit-margin-after: 2.33em; | |
} | |
h2 { | |
display: block; | |
font-size: 1.5em; | |
-webkit-margin-before: 0.83__qem; | |
-webkit-margin-after: 0.83em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
font-weight: bold | |
} | |
h3 { | |
display: block; | |
font-size: 1.17em; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
font-weight: bold | |
} | |
h4 { | |
display: block; | |
-webkit-margin-before: 1.33__qem; | |
-webkit-margin-after: 1.33em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
font-weight: bold | |
} | |
h5 { | |
display: block; | |
font-size: .83em; | |
-webkit-margin-before: 1.67__qem; | |
-webkit-margin-after: 1.67em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
font-weight: bold | |
} | |
h6 { | |
display: block; | |
font-size: .67em; | |
-webkit-margin-before: 2.33__qem; | |
-webkit-margin-after: 2.33em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
font-weight: bold | |
} | |
/* tables */ | |
table { | |
display: table; | |
border-collapse: separate; | |
border-spacing: 2px; | |
border-color: gray | |
} | |
thead { | |
display: table-header-group; | |
vertical-align: middle; | |
border-color: inherit | |
} | |
tbody { | |
display: table-row-group; | |
vertical-align: middle; | |
border-color: inherit | |
} | |
tfoot { | |
display: table-footer-group; | |
vertical-align: middle; | |
border-color: inherit | |
} | |
/* for tables without table section elements (can happen with XHTML or dynamically created tables) */ | |
table > tr { | |
vertical-align: middle; | |
} | |
col { | |
display: table-column | |
} | |
colgroup { | |
display: table-column-group | |
} | |
tr { | |
display: table-row; | |
vertical-align: inherit; | |
border-color: inherit | |
} | |
td, th { | |
display: table-cell; | |
vertical-align: inherit | |
} | |
th { | |
font-weight: bold | |
} | |
caption { | |
display: table-caption; | |
text-align: -webkit-center | |
} | |
/* lists */ | |
ul, menu, dir { | |
display: block; | |
list-style-type: disc; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
-webkit-padding-start: 40px | |
} | |
ol { | |
display: block; | |
list-style-type: decimal; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
-webkit-padding-start: 40px | |
} | |
li { | |
display: list-item; | |
text-align: -webkit-match-parent; | |
} | |
ul ul, ol ul { | |
list-style-type: circle | |
} | |
ol ol ul, ol ul ul, ul ol ul, ul ul ul { | |
list-style-type: square | |
} | |
dd { | |
display: block; | |
-webkit-margin-start: 40px | |
} | |
dl { | |
display: block; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
} | |
dt { | |
display: block | |
} | |
ol ul, ul ol, ul ul, ol ol { | |
-webkit-margin-before: 0; | |
-webkit-margin-after: 0 | |
} | |
/* form elements */ | |
form { | |
display: block; | |
margin-top: 0__qem; | |
} | |
label { | |
cursor: default; | |
} | |
legend { | |
display: block; | |
-webkit-padding-start: 2px; | |
-webkit-padding-end: 2px; | |
border: none | |
} | |
fieldset { | |
display: block; | |
-webkit-margin-start: 2px; | |
-webkit-margin-end: 2px; | |
-webkit-padding-before: 0.35em; | |
-webkit-padding-start: 0.75em; | |
-webkit-padding-end: 0.75em; | |
-webkit-padding-after: 0.625em; | |
border: 2px groove ThreeDFace; | |
min-width: -webkit-min-content; | |
} | |
button { | |
-webkit-appearance: button; | |
} | |
/* Form controls don't go vertical. */ | |
input, textarea, keygen, select, button, meter, progress { | |
-webkit-writing-mode: horizontal-tb !important; | |
} | |
input, textarea, keygen, select, button { | |
margin: 0__qem; | |
font: -webkit-small-control; | |
text-rendering: auto; /* FIXME: Remove when tabs work with optimizeLegibility. */ | |
color: initial; | |
letter-spacing: normal; | |
word-spacing: normal; | |
line-height: normal; | |
text-transform: none; | |
text-indent: 0; | |
text-shadow: none; | |
display: inline-block; | |
text-align: start; | |
} | |
input[type="hidden" i] { | |
display: none | |
} | |
input { | |
-webkit-appearance: textfield; | |
padding: 1px; | |
background-color: white; | |
border: 2px inset; | |
-webkit-rtl-ordering: logical; | |
-webkit-user-select: text; | |
cursor: auto; | |
} | |
input[type="search" i] { | |
-webkit-appearance: searchfield; | |
box-sizing: border-box; | |
} | |
input::-webkit-textfield-decoration-container { | |
display: flex; | |
align-items: center; | |
-webkit-user-modify: read-only !important; | |
content: none !important; | |
} | |
input[type="search" i]::-webkit-textfield-decoration-container { | |
direction: ltr; | |
} | |
input::-webkit-clear-button { | |
-webkit-appearance: searchfield-cancel-button; | |
display: inline-block; | |
flex: none; | |
-webkit-user-modify: read-only !important; | |
-webkit-margin-start: 2px; | |
opacity: 0; | |
pointer-events: none; | |
} | |
input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-clear-button { | |
opacity: 1; | |
pointer-events: auto; | |
} | |
input[type="search" i]::-webkit-search-cancel-button { | |
-webkit-appearance: searchfield-cancel-button; | |
display: block; | |
flex: none; | |
-webkit-user-modify: read-only !important; | |
-webkit-margin-start: 1px; | |
opacity: 0; | |
pointer-events: none; | |
} | |
input[type="search" i]:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-search-cancel-button { | |
opacity: 1; | |
pointer-events: auto; | |
} | |
input[type="search" i]::-webkit-search-decoration { | |
-webkit-appearance: searchfield-decoration; | |
display: block; | |
flex: none; | |
-webkit-user-modify: read-only !important; | |
-webkit-align-self: flex-start; | |
margin: auto 0; | |
} | |
input[type="search" i]::-webkit-search-results-decoration { | |
-webkit-appearance: searchfield-results-decoration; | |
display: block; | |
flex: none; | |
-webkit-user-modify: read-only !important; | |
-webkit-align-self: flex-start; | |
margin: auto 0; | |
} | |
input::-webkit-inner-spin-button { | |
-webkit-appearance: inner-spin-button; | |
display: inline-block; | |
cursor: default; | |
flex: none; | |
align-self: stretch; | |
-webkit-user-select: none; | |
-webkit-user-modify: read-only !important; | |
opacity: 0; | |
pointer-events: none; | |
} | |
input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-inner-spin-button { | |
opacity: 1; | |
pointer-events: auto; | |
} | |
keygen, select { | |
border-radius: 5px; | |
} | |
keygen::-webkit-keygen-select { | |
margin: 0px; | |
} | |
textarea { | |
-webkit-appearance: textarea; | |
background-color: white; | |
border: 1px solid; | |
-webkit-rtl-ordering: logical; | |
-webkit-user-select: text; | |
flex-direction: column; | |
resize: auto; | |
cursor: auto; | |
padding: 2px; | |
white-space: pre-wrap; | |
word-wrap: break-word; | |
} | |
::-webkit-input-placeholder { | |
-webkit-text-security: none; | |
color: darkGray; | |
pointer-events: none !important; | |
} | |
input::-webkit-input-placeholder { | |
white-space: pre; | |
word-wrap: normal; | |
overflow: hidden; | |
-webkit-user-modify: read-only !important; | |
} | |
input[type="password" i] { | |
-webkit-text-security: disc !important; | |
} | |
input[type="hidden" i], input[type="image" i], input[type="file" i] { | |
-webkit-appearance: initial; | |
padding: initial; | |
background-color: initial; | |
border: initial; | |
} | |
input[type="file" i] { | |
align-items: baseline; | |
color: inherit; | |
text-align: start !important; | |
} | |
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill { | |
background-color: #FAFFBD !important; | |
background-image:none !important; | |
color: #000000 !important; | |
} | |
input[type="radio" i], input[type="checkbox" i] { | |
margin: 3px 0.5ex; | |
padding: initial; | |
background-color: initial; | |
border: initial; | |
} | |
input[type="button" i], input[type="submit" i], input[type="reset" i] { | |
-webkit-appearance: push-button; | |
-webkit-user-select: none; | |
white-space: pre | |
} | |
input[type="file" i]::-webkit-file-upload-button { | |
-webkit-appearance: push-button; | |
-webkit-user-modify: read-only !important; | |
white-space: nowrap; | |
margin: 0; | |
font-size: inherit; | |
} | |
input[type="button" i], input[type="submit" i], input[type="reset" i], input[type="file" i]::-webkit-file-upload-button, button { | |
align-items: flex-start; | |
text-align: center; | |
cursor: default; | |
color: ButtonText; | |
padding: 2px 6px 3px 6px; | |
border: 2px outset ButtonFace; | |
background-color: ButtonFace; | |
box-sizing: border-box | |
} | |
input[type="range" i] { | |
-webkit-appearance: slider-horizontal; | |
padding: initial; | |
border: initial; | |
margin: 2px; | |
color: #909090; | |
} | |
input[type="range" i]::-webkit-slider-container, input[type="range" i]::-webkit-media-slider-container { | |
flex: 1; | |
min-width: 0; | |
box-sizing: border-box; | |
-webkit-user-modify: read-only !important; | |
display: flex; | |
} | |
input[type="range" i]::-webkit-slider-runnable-track { | |
flex: 1; | |
min-width: 0; | |
-webkit-align-self: center; | |
box-sizing: border-box; | |
-webkit-user-modify: read-only !important; | |
display: block; | |
} | |
input[type="range" i]::-webkit-slider-thumb, input[type="range" i]::-webkit-media-slider-thumb { | |
-webkit-appearance: sliderthumb-horizontal; | |
box-sizing: border-box; | |
-webkit-user-modify: read-only !important; | |
display: block; | |
} | |
input[type="button" i]:disabled, input[type="submit" i]:disabled, input[type="reset" i]:disabled, | |
input[type="file" i]:disabled::-webkit-file-upload-button, button:disabled, | |
select:disabled, keygen:disabled, optgroup:disabled, option:disabled, | |
select[disabled]>option { | |
color: GrayText | |
} | |
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 { | |
border-style: inset | |
} | |
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 { | |
border-style: outset | |
} | |
option:-internal-spatial-navigation-focus { | |
outline: black dashed 1px; | |
outline-offset: -1px; | |
} | |
datalist { | |
display: none | |
} | |
area { | |
display: inline; | |
cursor: pointer; | |
} | |
param { | |
display: none | |
} | |
input[type="checkbox" i] { | |
-webkit-appearance: checkbox; | |
box-sizing: border-box; | |
} | |
input[type="radio" i] { | |
-webkit-appearance: radio; | |
box-sizing: border-box; | |
} | |
input[type="color" i] { | |
-webkit-appearance: square-button; | |
width: 44px; | |
height: 23px; | |
background-color: ButtonFace; | |
/* Same as native_theme_base. */ | |
border: 1px #a9a9a9 solid; | |
padding: 1px 2px; | |
} | |
input[type="color" i]::-webkit-color-swatch-wrapper { | |
display:flex; | |
padding: 4px 2px; | |
box-sizing: border-box; | |
-webkit-user-modify: read-only !important; | |
width: 100%; | |
height: 100% | |
} | |
input[type="color" i]::-webkit-color-swatch { | |
background-color: #000000; | |
border: 1px solid #777777; | |
flex: 1; | |
min-width: 0; | |
-webkit-user-modify: read-only !important; | |
} | |
input[type="color" i][list] { | |
-webkit-appearance: menulist; | |
width: 88px; | |
height: 23px | |
} | |
input[type="color" i][list]::-webkit-color-swatch-wrapper { | |
padding-left: 8px; | |
padding-right: 24px; | |
} | |
input[type="color" i][list]::-webkit-color-swatch { | |
border-color: #000000; | |
} | |
input::-webkit-calendar-picker-indicator { | |
display: inline-block; | |
width: 0.66em; | |
height: 0.66em; | |
padding: 0.17em 0.34em; | |
-webkit-user-modify: read-only !important; | |
opacity: 0; | |
pointer-events: none; | |
} | |
input::-webkit-calendar-picker-indicator:hover { | |
background-color: #eee; | |
} | |
input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-calendar-picker-indicator, | |
input::-webkit-calendar-picker-indicator:focus { | |
opacity: 1; | |
pointer-events: auto; | |
} | |
input[type="date" i]:disabled::-webkit-clear-button, | |
input[type="date" i]:disabled::-webkit-inner-spin-button, | |
input[type="datetime-local" i]:disabled::-webkit-clear-button, | |
input[type="datetime-local" i]:disabled::-webkit-inner-spin-button, | |
input[type="month" i]:disabled::-webkit-clear-button, | |
input[type="month" i]:disabled::-webkit-inner-spin-button, | |
input[type="week" i]:disabled::-webkit-clear-button, | |
input[type="week" i]:disabled::-webkit-inner-spin-button, | |
input:disabled::-webkit-calendar-picker-indicator, | |
input[type="date" i][readonly]::-webkit-clear-button, | |
input[type="date" i][readonly]::-webkit-inner-spin-button, | |
input[type="datetime-local" i][readonly]::-webkit-clear-button, | |
input[type="datetime-local" i][readonly]::-webkit-inner-spin-button, | |
input[type="month" i][readonly]::-webkit-clear-button, | |
input[type="month" i][readonly]::-webkit-inner-spin-button, | |
input[type="week" i][readonly]::-webkit-clear-button, | |
input[type="week" i][readonly]::-webkit-inner-spin-button, | |
input[readonly]::-webkit-calendar-picker-indicator { | |
visibility: hidden; | |
} | |
select { | |
-webkit-appearance: menulist; | |
box-sizing: border-box; | |
align-items: center; | |
border: 1px solid; | |
white-space: pre; | |
-webkit-rtl-ordering: logical; | |
color: black; | |
background-color: white; | |
cursor: default; | |
} | |
select:not(:-internal-list-box) { | |
overflow: visible !important; | |
} | |
select:-internal-list-box { | |
-webkit-appearance: listbox; | |
align-items: flex-start; | |
border: 1px inset gray; | |
border-radius: initial; | |
overflow-x: hidden; | |
overflow-y: scroll; | |
vertical-align: text-bottom; | |
-webkit-user-select: none; | |
white-space: nowrap; | |
} | |
optgroup { | |
font-weight: bolder; | |
display: block; | |
} | |
option { | |
font-weight: normal; | |
display: block; | |
padding: 0 2px 1px 2px; | |
white-space: pre; | |
min-height: 1.2em; | |
} | |
select:-internal-list-box optgroup option:before { | |
content: "\00a0\00a0\00a0\00a0";; | |
} | |
select:-internal-list-box option, | |
select:-internal-list-box optgroup { | |
line-height: initial !important; | |
} | |
select:-internal-list-box:focus option:checked { | |
background-color: -internal-active-list-box-selection !important; | |
color: -internal-active-list-box-selection-text !important; | |
} | |
select:-internal-list-box option:checked { | |
background-color: -internal-inactive-list-box-selection !important; | |
color: -internal-inactive-list-box-selection-text !important; | |
} | |
select:-internal-list-box:disabled option:checked, | |
select:-internal-list-box option:checked:disabled { | |
color: gray !important; | |
} | |
select:-internal-list-box hr { | |
border-style: none; | |
} | |
output { | |
display: inline; | |
} | |
/* meter */ | |
meter { | |
-webkit-appearance: meter; | |
box-sizing: border-box; | |
display: inline-block; | |
height: 1em; | |
width: 5em; | |
vertical-align: -0.2em; | |
} | |
meter::-webkit-meter-inner-element { | |
-webkit-appearance: inherit; | |
box-sizing: inherit; | |
-webkit-user-modify: read-only !important; | |
height: 100%; | |
width: 100%; | |
} | |
meter::-webkit-meter-bar { | |
background: linear-gradient(to bottom, #ddd, #eee 20%, #ccc 45%, #ccc 55%, #ddd); | |
height: 100%; | |
width: 100%; | |
-webkit-user-modify: read-only !important; | |
box-sizing: border-box; | |
} | |
meter::-webkit-meter-optimum-value { | |
background: linear-gradient(to bottom, #ad7, #cea 20%, #7a3 45%, #7a3 55%, #ad7); | |
height: 100%; | |
-webkit-user-modify: read-only !important; | |
box-sizing: border-box; | |
} | |
meter::-webkit-meter-suboptimum-value { | |
background: linear-gradient(to bottom, #fe7, #ffc 20%, #db3 45%, #db3 55%, #fe7); | |
height: 100%; | |
-webkit-user-modify: read-only !important; | |
box-sizing: border-box; | |
} | |
meter::-webkit-meter-even-less-good-value { | |
background: linear-gradient(to bottom, #f77, #fcc 20%, #d44 45%, #d44 55%, #f77); | |
height: 100%; | |
-webkit-user-modify: read-only !important; | |
box-sizing: border-box; | |
} | |
/* progress */ | |
progress { | |
-webkit-appearance: progress-bar; | |
box-sizing: border-box; | |
display: inline-block; | |
height: 1em; | |
width: 10em; | |
vertical-align: -0.2em; | |
} | |
progress::-webkit-progress-inner-element { | |
-webkit-appearance: inherit; | |
box-sizing: inherit; | |
-webkit-user-modify: read-only; | |
height: 100%; | |
width: 100%; | |
} | |
progress::-webkit-progress-bar { | |
background-color: gray; | |
height: 100%; | |
width: 100%; | |
-webkit-user-modify: read-only !important; | |
box-sizing: border-box; | |
} | |
progress::-webkit-progress-value { | |
background-color: green; | |
height: 100%; | |
width: 50%; /* should be removed later */ | |
-webkit-user-modify: read-only !important; | |
box-sizing: border-box; | |
} | |
/* inline elements */ | |
u, ins { | |
text-decoration: underline | |
} | |
strong, b { | |
font-weight: bold | |
} | |
i, cite, em, var, address, dfn { | |
font-style: italic | |
} | |
tt, code, kbd, samp { | |
font-family: monospace | |
} | |
pre, xmp, plaintext, listing { | |
display: block; | |
font-family: monospace; | |
white-space: pre; | |
margin: 1__qem 0 | |
} | |
mark { | |
background-color: yellow; | |
color: black | |
} | |
big { | |
font-size: larger | |
} | |
small { | |
font-size: smaller | |
} | |
s, strike, del { | |
text-decoration: line-through | |
} | |
sub { | |
vertical-align: sub; | |
font-size: smaller | |
} | |
sup { | |
vertical-align: super; | |
font-size: smaller | |
} | |
nobr { | |
white-space: nowrap | |
} | |
/* states */ | |
:focus { | |
outline: auto 5px -webkit-focus-ring-color | |
} | |
/* Read-only text fields do not show a focus ring but do still receive focus */ | |
html:focus, body:focus, input[readonly]:focus { | |
outline: none | |
} | |
embed:focus, iframe:focus, object:focus { | |
outline: none | |
} | |
input:focus, textarea:focus, keygen:focus, select:focus { | |
outline-offset: -2px | |
} | |
input[type="button" i]:focus, | |
input[type="checkbox" i]:focus, | |
input[type="file" i]:focus, | |
input[type="hidden" i]:focus, | |
input[type="image" i]:focus, | |
input[type="radio" i]:focus, | |
input[type="reset" i]:focus, | |
input[type="search" i]:focus, | |
input[type="submit" i]:focus, | |
input[type="file" i]:focus::-webkit-file-upload-button { | |
outline-offset: 0 | |
} | |
a:-webkit-any-link { | |
color: -webkit-link; | |
text-decoration: underline; | |
cursor: auto; | |
} | |
a:-webkit-any-link:active { | |
color: -webkit-activelink | |
} | |
/* HTML5 ruby elements */ | |
ruby, rt { | |
text-indent: 0; /* blocks used for ruby rendering should not trigger this */ | |
} | |
rt { | |
line-height: normal; | |
-webkit-text-emphasis: none; | |
} | |
ruby > rt { | |
display: block; | |
font-size: 50%; | |
text-align: start; | |
} | |
ruby > rp { | |
display: none; | |
} | |
/* other elements */ | |
noframes { | |
display: none | |
} | |
frameset, frame { | |
display: block | |
} | |
frameset { | |
border-color: inherit | |
} | |
iframe { | |
border: 2px inset | |
} | |
details { | |
display: block | |
} | |
summary { | |
display: block | |
} | |
summary::-webkit-details-marker { | |
display: inline-block; | |
width: 0.66em; | |
height: 0.66em; | |
-webkit-margin-end: 0.4em; | |
} | |
template { | |
display: none | |
} | |
bdi, output { | |
unicode-bidi: -webkit-isolate; | |
} | |
bdo { | |
unicode-bidi: bidi-override; | |
} | |
textarea[dir=auto i] { | |
unicode-bidi: -webkit-plaintext; | |
} | |
dialog:not([open]) { | |
display: none | |
} | |
dialog { | |
position: absolute; | |
left: 0; | |
right: 0; | |
width: -webkit-fit-content; | |
height: -webkit-fit-content; | |
margin: auto; | |
border: solid; | |
padding: 1em; | |
background: white; | |
color: black | |
} | |
dialog::backdrop { | |
position: fixed; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
background: rgba(0,0,0,0.1) | |
} | |
/* page */ | |
@page { | |
/* FIXME: Define the right default values for page properties. */ | |
size: auto; | |
margin: auto; | |
padding: 0px; | |
border-width: 0px; | |
} | |
/* Disable multicol in printing, since it's not implemented properly. See crbug.com/99358 */ | |
@media print { | |
* { -webkit-columns: auto !important; } | |
} | |
/* noscript is handled internally, as it depends on settings. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/mozilla/gecko-dev/blob/master/layout/style/res/html.css | |
/* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this | |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */ | |
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); | |
/* bidi */ | |
:-moz-has-dir-attr { | |
unicode-bidi: isolate; | |
} | |
:-moz-dir-attr-rtl { | |
direction: rtl; | |
} | |
:-moz-dir-attr-ltr { | |
direction: ltr; | |
} | |
:-moz-dir-attr-like-auto:dir(ltr) { direction: ltr; } | |
:-moz-dir-attr-like-auto:dir(rtl) { direction: rtl; } | |
/* To ensure http://www.w3.org/TR/REC-html40/struct/dirlang.html#style-bidi: | |
* | |
* "When a block element that does not have a dir attribute is transformed to | |
* the style of an inline element by a style sheet, the resulting presentation | |
* should be equivalent, in terms of bidirectional formatting, to the | |
* formatting obtained by explicitly adding a dir attribute (assigned the | |
* inherited value) to the transformed element." | |
* | |
* and the rules in http://dev.w3.org/html5/spec/rendering.html#rendering | |
*/ | |
address, | |
article, | |
aside, | |
blockquote, | |
body, | |
caption, | |
center, | |
col, | |
colgroup, | |
dd, | |
dir, | |
div, | |
dl, | |
dt, | |
fieldset, | |
figcaption, | |
figure, | |
footer, | |
form, | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6, | |
header, | |
hgroup, | |
hr, | |
html, | |
legend, | |
li, | |
listing, | |
main, | |
marquee, | |
menu, | |
nav, | |
noframes, | |
ol, | |
p, | |
plaintext, | |
pre, | |
section, | |
summary, | |
table, | |
tbody, | |
td, | |
tfoot, | |
th, | |
thead, | |
tr, | |
ul, | |
xmp { | |
unicode-bidi: isolate; | |
} | |
bdi, output { | |
unicode-bidi: isolate; | |
} | |
/* We need the "bdo:-moz-has-dir-attr" bit because "bdo" has lower | |
specificity than the ":-moz-has-dir-attr" selector above. */ | |
bdo, bdo:-moz-has-dir-attr { | |
unicode-bidi: isolate-override; | |
} | |
textarea:-moz-dir-attr-like-auto, | |
pre:-moz-dir-attr-like-auto { | |
unicode-bidi: plaintext; | |
} | |
/* blocks */ | |
article, | |
aside, | |
details, | |
div, | |
dt, | |
figcaption, | |
footer, | |
form, | |
header, | |
hgroup, | |
html, | |
main, | |
nav, | |
section, | |
summary { | |
display: block; | |
} | |
body { | |
display: block; | |
margin: 8px; | |
} | |
p, dl, multicol { | |
display: block; | |
margin-block-start: 1em; | |
margin-block-end: 1em; | |
} | |
dd { | |
display: block; | |
margin-inline-start: 40px; | |
} | |
blockquote, figure { | |
display: block; | |
margin-block-start: 1em; | |
margin-block-end: 1em; | |
margin-inline-start: 40px; | |
margin-inline-end: 40px; | |
} | |
address { | |
display: block; | |
font-style: italic; | |
} | |
center { | |
display: block; | |
text-align: -moz-center; | |
} | |
blockquote[type=cite] { | |
display: block; | |
margin-block-start: 1em; | |
margin-block-end: 1em; | |
margin-inline-start: 0; | |
margin-inline-end: 0; | |
padding-inline-start: 1em; | |
border-inline-start: solid; | |
border-color: blue; | |
border-width: thin; | |
} | |
span[_moz_quote=true] { | |
color: blue; | |
} | |
pre[_moz_quote=true] { | |
color: blue; | |
} | |
h1 { | |
display: block; | |
font-size: 2em; | |
font-weight: bold; | |
margin-block-start: .67em; | |
margin-block-end: .67em; | |
} | |
h2, | |
:-moz-any(article, aside, nav, section) | |
h1 { | |
display: block; | |
font-size: 1.5em; | |
font-weight: bold; | |
margin-block-start: .83em; | |
margin-block-end: .83em; | |
} | |
h3, | |
:-moz-any(article, aside, nav, section) | |
:-moz-any(article, aside, nav, section) | |
h1 { | |
display: block; | |
font-size: 1.17em; | |
font-weight: bold; | |
margin-block-start: 1em; | |
margin-block-end: 1em; | |
} | |
h4, | |
:-moz-any(article, aside, nav, section) | |
:-moz-any(article, aside, nav, section) | |
:-moz-any(article, aside, nav, section) | |
h1 { | |
display: block; | |
font-size: 1.00em; | |
font-weight: bold; | |
margin-block-start: 1.33em; | |
margin-block-end: 1.33em; | |
} | |
h5, | |
:-moz-any(article, aside, nav, section) | |
:-moz-any(article, aside, nav, section) | |
:-moz-any(article, aside, nav, section) | |
:-moz-any(article, aside, nav, section) | |
h1 { | |
display: block; | |
font-size: 0.83em; | |
font-weight: bold; | |
margin-block-start: 1.67em; | |
margin-block-end: 1.67em; | |
} | |
h6, | |
:-moz-any(article, aside, nav, section) | |
:-moz-any(article, aside, nav, section) | |
:-moz-any(article, aside, nav, section) | |
:-moz-any(article, aside, nav, section) | |
:-moz-any(article, aside, nav, section) | |
h1 { | |
display: block; | |
font-size: 0.67em; | |
font-weight: bold; | |
margin-block-start: 2.33em; | |
margin-block-end: 2.33em; | |
} | |
listing { | |
display: block; | |
font-family: -moz-fixed; | |
font-size: medium; | |
white-space: pre; | |
margin-block-start: 1em; | |
margin-block-end: 1em; | |
} | |
xmp, pre, plaintext { | |
display: block; | |
font-family: -moz-fixed; | |
white-space: pre; | |
margin-block-start: 1em; | |
margin-block-end: 1em; | |
} | |
/* tables */ | |
table { | |
display: table; | |
border-spacing: 2px; | |
border-collapse: separate; | |
/* XXXldb do we want this if we're border-collapse:collapse ? */ | |
box-sizing: border-box; | |
text-indent: 0; | |
} | |
table[align="left"] { | |
float: left; | |
} | |
table[align="right"] { | |
float: right; | |
text-align: start; | |
} | |
/* border collapse rules */ | |
/* Set hidden if we have 'frame' or 'rules' attribute. | |
Set it on all sides when we do so there's more consistency | |
in what authors should expect */ | |
/* Put this first so 'border' and 'frame' rules can override it. */ | |
table[rules] { | |
border-width: thin; | |
border-style: hidden; | |
} | |
/* 'border' before 'frame' so 'frame' overrides | |
A border with a given value should, of course, pass that value | |
as the border-width in pixels -> attr mapping */ | |
/* :-moz-table-border-nonzero is like [border]:not([border="0"]) except it | |
also checks for other zero-like values according to HTML attribute | |
parsing rules */ | |
table:-moz-table-border-nonzero { | |
border-width: thin; | |
border-style: outset; | |
} | |
table[frame] { | |
border: thin hidden; | |
} | |
/* specificity must beat table:-moz-table-border-nonzero rule above */ | |
table[frame="void"] { border-style: hidden; } | |
table[frame="above"] { border-style: outset hidden hidden hidden; } | |
table[frame="below"] { border-style: hidden hidden outset hidden; } | |
table[frame="lhs"] { border-style: hidden hidden hidden outset; } | |
table[frame="rhs"] { border-style: hidden outset hidden hidden; } | |
table[frame="hsides"] { border-style: outset hidden; } | |
table[frame="vsides"] { border-style: hidden outset; } | |
table[frame="box"], | |
table[frame="border"] { border-style: outset; } | |
/* Internal Table Borders */ | |
/* 'border' cell borders first */ | |
table:-moz-table-border-nonzero > * > tr > td, | |
table:-moz-table-border-nonzero > * > tr > th, | |
table:-moz-table-border-nonzero > * > td, | |
table:-moz-table-border-nonzero > * > th, | |
table:-moz-table-border-nonzero > td, | |
table:-moz-table-border-nonzero > th | |
{ | |
border-width: thin; | |
border-style: inset; | |
} | |
/* collapse only if rules are really specified */ | |
table[rules]:not([rules="none"]):not([rules=""]) { | |
border-collapse: collapse; | |
} | |
/* only specified rules override 'border' settings | |
(increased specificity to achieve this) */ | |
table[rules]:not([rules=""])> tr > td, | |
table[rules]:not([rules=""])> * > tr > td, | |
table[rules]:not([rules=""])> tr > th, | |
table[rules]:not([rules=""])> * > tr > th, | |
table[rules]:not([rules=""])> td, | |
table[rules]:not([rules=""])> th | |
{ | |
border-width: thin; | |
border-style: none; | |
} | |
table[rules][rules="none"] > tr > td, | |
table[rules][rules="none"] > * > tr > td, | |
table[rules][rules="none"] > tr > th, | |
table[rules][rules="none"] > * > tr > th, | |
table[rules][rules="none"] > td, | |
table[rules][rules="none"] > th | |
{ | |
border-width: thin; | |
border-style: none; | |
} | |
table[rules][rules="all"] > tr > td, | |
table[rules][rules="all"] > * > tr > td, | |
table[rules][rules="all"] > tr > th, | |
table[rules][rules="all"] > * > tr > th, | |
table[rules][rules="all"] > td, | |
table[rules][rules="all"] > th | |
{ | |
border-width: thin; | |
border-style: solid; | |
} | |
table[rules][rules="rows"] > tr, | |
table[rules][rules="rows"] > * > tr { | |
border-block-start-width: thin; | |
border-block-end-width: thin; | |
border-block-start-style: solid; | |
border-block-end-style: solid; | |
} | |
table[rules][rules="cols"] > tr > td, | |
table[rules][rules="cols"] > * > tr > td, | |
table[rules][rules="cols"] > tr > th, | |
table[rules][rules="cols"] > * > tr > th { | |
border-inline-start-width: thin; | |
border-inline-end-width: thin; | |
border-inline-start-style: solid; | |
border-inline-end-style: solid; | |
} | |
table[rules][rules="groups"] > colgroup { | |
border-inline-start-width: thin; | |
border-inline-end-width: thin; | |
border-inline-start-style: solid; | |
border-inline-end-style: solid; | |
} | |
table[rules][rules="groups"] > tfoot, | |
table[rules][rules="groups"] > thead, | |
table[rules][rules="groups"] > tbody { | |
border-block-start-width: thin; | |
border-block-end-width: thin; | |
border-block-start-style: solid; | |
border-block-start-style: solid; | |
} | |
/* caption inherits from table not table-outer */ | |
caption { | |
display: table-caption; | |
text-align: center; | |
} | |
table[align="center"] > caption { | |
margin-inline-start: auto; | |
margin-inline-end: auto; | |
} | |
table[align="center"] > caption[align="left"]:dir(ltr) { | |
margin-inline-end: 0; | |
} | |
table[align="center"] > caption[align="left"]:dir(rtl) { | |
margin-inline-start: 0; | |
} | |
table[align="center"] > caption[align="right"]:dir(ltr) { | |
margin-inline-start: 0; | |
} | |
table[align="center"] > caption[align="right"]:dir(rtl) { | |
margin-inline-end: 0; | |
} | |
tr { | |
display: table-row; | |
vertical-align: inherit; | |
} | |
col { | |
display: table-column; | |
} | |
colgroup { | |
display: table-column-group; | |
} | |
tbody { | |
display: table-row-group; | |
vertical-align: middle; | |
} | |
thead { | |
display: table-header-group; | |
vertical-align: middle; | |
} | |
tfoot { | |
display: table-footer-group; | |
vertical-align: middle; | |
} | |
/* for XHTML tables without tbody */ | |
table > tr { | |
vertical-align: middle; | |
} | |
td { | |
display: table-cell; | |
vertical-align: inherit; | |
text-align: inherit; | |
padding: 1px; | |
} | |
th { | |
display: table-cell; | |
vertical-align: inherit; | |
font-weight: bold; | |
padding: 1px; | |
} | |
tr > form:-moz-is-html, tbody > form:-moz-is-html, | |
thead > form:-moz-is-html, tfoot > form:-moz-is-html, | |
table > form:-moz-is-html { | |
/* Important: don't show these forms in HTML */ | |
display: none !important; | |
} | |
table[bordercolor] > tbody, | |
table[bordercolor] > thead, | |
table[bordercolor] > tfoot, | |
table[bordercolor] > col, | |
table[bordercolor] > colgroup, | |
table[bordercolor] > tr, | |
table[bordercolor] > * > tr, | |
table[bordercolor] > tr > td, | |
table[bordercolor] > * > tr > td, | |
table[bordercolor] > tr > th, | |
table[bordercolor] > * > tr > th { | |
border-color: inherit; | |
} | |
/* inlines */ | |
q:before { | |
content: open-quote; | |
} | |
q:after { | |
content: close-quote; | |
} | |
b, strong { | |
font-weight: bolder; | |
} | |
i, cite, em, var, dfn { | |
font-style: italic; | |
} | |
tt, code, kbd, samp { | |
font-family: -moz-fixed; | |
} | |
u, ins { | |
text-decoration: underline; | |
} | |
s, strike, del { | |
text-decoration: line-through; | |
} | |
big { | |
font-size: larger; | |
} | |
small { | |
font-size: smaller; | |
} | |
sub { | |
vertical-align: sub; | |
font-size: smaller; | |
line-height: normal; | |
} | |
sup { | |
vertical-align: super; | |
font-size: smaller; | |
line-height: normal; | |
} | |
nobr { | |
white-space: nowrap; | |
} | |
mark { | |
background: yellow; | |
color: black; | |
} | |
/* titles */ | |
abbr[title], acronym[title] { | |
text-decoration: dotted underline; | |
} | |
/* lists */ | |
ul, menu, dir { | |
display: block; | |
list-style-type: disc; | |
margin-block-start: 1em; | |
margin-block-end: 1em; | |
padding-inline-start: 40px; | |
} | |
menu[type="context"] { | |
display: none !important; | |
} | |
ol { | |
display: block; | |
list-style-type: decimal; | |
margin-block-start: 1em; | |
margin-block-end: 1em; | |
padding-inline-start: 40px; | |
} | |
li { | |
display: list-item; | |
text-align: match-parent; | |
} | |
/* nested lists have no top/bottom margins */ | |
:-moz-any(ul, ol, dir, menu, dl) ul, | |
:-moz-any(ul, ol, dir, menu, dl) ol, | |
:-moz-any(ul, ol, dir, menu, dl) dir, | |
:-moz-any(ul, ol, dir, menu, dl) menu, | |
:-moz-any(ul, ol, dir, menu, dl) dl { | |
margin-block-start: 0; | |
margin-block-end: 0; | |
} | |
/* 2 deep unordered lists use a circle */ | |
:-moz-any(ol, ul, menu, dir) ul, | |
:-moz-any(ol, ul, menu, dir) menu, | |
:-moz-any(ol, ul, menu, dir) dir { | |
list-style-type: circle; | |
} | |
/* 3 deep (or more) unordered lists use a square */ | |
:-moz-any(ol, ul, menu, dir) :-moz-any(ol, ul, menu, dir) ul, | |
:-moz-any(ol, ul, menu, dir) :-moz-any(ol, ul, menu, dir) menu, | |
:-moz-any(ol, ul, menu, dir) :-moz-any(ol, ul, menu, dir) dir { | |
list-style-type: square; | |
} | |
/* leafs */ | |
/* <hr> noshade and color attributes are handled completely by | |
* the nsHTMLHRElement attribute mapping code | |
*/ | |
hr { | |
display: block; | |
border: 1px inset; | |
margin-block-start: 0.5em; | |
margin-block-end: 0.5em; | |
margin-inline-start: auto; | |
margin-inline-end: auto; | |
color: gray; | |
-moz-float-edge: margin-box; | |
box-sizing: content-box; | |
} | |
hr[size="1"] { | |
border-style: solid none none none; | |
} | |
img:-moz-broken::before, input:-moz-broken::before, | |
img:-moz-user-disabled::before, input:-moz-user-disabled::before, | |
img:-moz-loading::before, input:-moz-loading::before { | |
content: -moz-alt-content !important; | |
unicode-bidi: isolate; | |
} | |
object:-moz-any(:-moz-broken,:-moz-user-disabled) > *|* { | |
/* | |
Inherit in the object's alignment so that if we aren't aligned explicitly | |
we'll end up in the right place vertically. See bug 36997. Note that this | |
is not !important because we _might_ be aligned explicitly. | |
*/ | |
vertical-align: inherit; | |
} | |
img:-moz-suppressed, input:-moz-suppressed, object:-moz-suppressed, | |
embed:-moz-suppressed { | |
/* | |
Set visibility too in case the page changes display. Note that we _may_ | |
want to just set visibility and not display, in general, if we find that | |
display:none breaks too many layouts. And if we decide we really do want | |
people to be able to right-click blocked images, etc, we need to set | |
neither one, and hack the painting code.... :( | |
*/ | |
display: none !important; | |
visibility: hidden !important; | |
} | |
img[usemap], object[usemap] { | |
color: blue; | |
} | |
frameset { | |
display: block ! important; | |
overflow: -moz-hidden-unscrollable; | |
position: static ! important; | |
float: none ! important; | |
border: none ! important; | |
} | |
link { | |
display: none; | |
} | |
frame { | |
border-radius: 0 ! important; | |
} | |
iframe { | |
border: 2px inset; | |
} | |
noframes { | |
display: none; | |
} | |
spacer { | |
position: static ! important; | |
float: none ! important; | |
} | |
canvas { | |
-moz-user-select: none; | |
} | |
/* focusable content: anything w/ tabindex >=0 is focusable, but we | |
skip drawing a focus outline on a few things that handle it | |
themselves. */ | |
:-moz-focusring:not(input):not(button):not(select):not(textarea):not(iframe):not(frame):not(body):not(html) { | |
/* Don't specify the outline-color, we should always use initial value. */ | |
outline: 1px dotted; | |
} | |
/* hidden elements */ | |
base, basefont, datalist, head, meta, script, style, title, | |
noembed, param, template { | |
display: none; | |
} | |
area { | |
/* Don't give it frames other than its imageframe */ | |
display: none ! important; | |
} | |
iframe:fullscreen { | |
/* iframes in full-screen mode don't show a border. */ | |
border: none !important; | |
padding: 0 !important; | |
} | |
/* media elements */ | |
video > xul|videocontrols, audio > xul|videocontrols { | |
display: -moz-box; | |
-moz-box-orient: vertical; | |
-moz-binding: url("chrome://global/content/bindings/videocontrols.xml#videoControls"); | |
} | |
video:not([controls]) > xul|videocontrols, | |
audio:not([controls]) > xul|videocontrols { | |
visibility: hidden; | |
-moz-binding: none; | |
} | |
video { | |
object-fit: contain; | |
} | |
video > img:-moz-native-anonymous { | |
/* Video poster images should render with the video element's "object-fit" & | |
"object-position" properties */ | |
object-fit: inherit !important; | |
object-position: inherit !important; | |
} | |
audio:not([controls]) { | |
display: none; | |
} | |
audio[controls] { | |
/* This ensures that intrinsic sizing can reliably shrinkwrap our | |
controls (which are also always horizontal) and produce a | |
reasonable intrinsic size from them. */ | |
writing-mode: horizontal-tb !important; | |
} | |
*|*::-moz-html-canvas-content { | |
display: block !important; | |
/* we want to be an absolute and fixed container */ | |
transform: translate(0) !important; | |
} | |
video > .caption-box { | |
width: 100%; | |
height: 100%; | |
position: relative; | |
} | |
/* ::cue default settings */ | |
::cue { | |
color: rgba(255, 255, 255, 1); | |
white-space: pre-line; | |
background-color: rgba(0, 0, 0, 0.8); | |
font: var(--cue-font-size) sans-serif; | |
} | |
/* datetime elements */ | |
input[type="time"] > xul|datetimebox { | |
display: flex; | |
-moz-binding: url("chrome://global/content/bindings/datetimebox.xml#time-input"); | |
} | |
input[type="date"] > xul|datetimebox { | |
display: flex; | |
-moz-binding: url("chrome://global/content/bindings/datetimebox.xml#date-input"); | |
} | |
/* details & summary */ | |
details > summary:first-of-type, | |
details > summary:-moz-native-anonymous { | |
display: list-item; | |
list-style: disclosure-closed inside; | |
} | |
details[open] > summary:first-of-type, | |
details[open] > summary:-moz-native-anonymous { | |
list-style-type: disclosure-open; | |
} | |
details > summary:first-of-type > *|* { | |
/* Cancel "list-style-position: inside" inherited from summary. */ | |
list-style-position: initial; | |
} | |
/* <dialog> element styles */ | |
dialog { | |
position: absolute; | |
inset-inline-start: 0; | |
inset-inline-end: 0; | |
color: black; | |
margin: auto; | |
border-width: initial; | |
border-style: solid; | |
border-color: initial; | |
border-image: initial; | |
padding: 1em; | |
background: white; | |
width: -moz-fit-content; | |
} | |
dialog:not([open]) { | |
display: none; | |
} | |
/* emulation of non-standard HTML <marquee> tag */ | |
marquee { | |
inline-size: -moz-available; | |
display: inline-block; | |
vertical-align: text-bottom; | |
text-align: start; | |
-moz-binding: url('chrome://xbl-marquee/content/xbl-marquee.xml#marquee-horizontal'); | |
} | |
marquee[direction="up"], marquee[direction="down"] { | |
-moz-binding: url('chrome://xbl-marquee/content/xbl-marquee.xml#marquee-vertical'); | |
block-size: 200px; | |
} | |
/* PRINT ONLY rules follow */ | |
@media print { | |
marquee { -moz-binding: none; } | |
} | |
/* Ruby */ | |
ruby { | |
display: ruby; | |
} | |
rb { | |
display: ruby-base; | |
white-space: nowrap; | |
} | |
rp { | |
display: none; | |
} | |
rt { | |
display: ruby-text; | |
} | |
rtc { | |
display: ruby-text-container; | |
} | |
rtc, rt { | |
white-space: nowrap; | |
font-size: 50%; | |
-moz-min-font-size-ratio: 50%; | |
line-height: 1; | |
%ifndef XP_WIN | |
/* The widely-used Windows font Meiryo doesn't work fine with this | |
* setting, so disable this on Windows. We should re-enable it once | |
* Microsoft fixes this issue. See bug 1164279. */ | |
font-variant-east-asian: ruby; | |
%endif | |
} | |
rtc, rt { | |
text-emphasis: none; | |
} | |
rtc:lang(zh), rt:lang(zh) { | |
ruby-align: center; | |
} | |
rtc:lang(zh-TW), rt:lang(zh-TW) { | |
font-size: 30%; /* bopomofo */ | |
-moz-min-font-size-ratio: 30%; | |
} | |
rtc > rt { | |
font-size: inherit; | |
} | |
ruby, rb, rt, rtc { | |
unicode-bidi: isolate; | |
} | |
/* Shadow DOM v1 | |
* https://drafts.csswg.org/css-scoping/#slots-in-shadow-tree */ | |
slot { | |
display: contents; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css | |
/* | |
* The default style sheet used to render HTML. | |
* | |
* Copyright (C) 2000 Lars Knoll ([email protected]) | |
* Copyright (C) 2003-2011, 2014 Apple Inc. All rights reserved. | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Library General Public | |
* License as published by the Free Software Foundation; either | |
* version 2 of the License, or (at your option) any later version. | |
* | |
* This library is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
* Library General Public License for more details. | |
* | |
* You should have received a copy of the GNU Library General Public License | |
* along with this library; see the file COPYING.LIB. If not, write to | |
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
* Boston, MA 02110-1301, USA. | |
* | |
*/ | |
@namespace "http://www.w3.org/1999/xhtml"; | |
html { | |
display: block; | |
} | |
/* children of the <head> element all have display:none */ | |
head, link, meta, script, style, title { | |
display: none; | |
} | |
/* generic block-level elements */ | |
body { | |
display: block; | |
margin: 8px; | |
} | |
p { | |
display: block; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1__qem; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
} | |
address, article, aside, div, footer, header, hgroup, layer, main, nav, section { | |
display: block; | |
} | |
marquee { | |
display: inline-block; | |
} | |
blockquote { | |
display: block; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1em; | |
-webkit-margin-start: 40px; | |
-webkit-margin-end: 40px; | |
} | |
figcaption { | |
display: block; | |
} | |
figure { | |
display: block; | |
-webkit-margin-before: 1em; | |
-webkit-margin-after: 1em; | |
-webkit-margin-start: 40px; | |
-webkit-margin-end: 40px; | |
} | |
q { | |
display: inline; | |
} | |
q::before { | |
content: open-quote; | |
} | |
q::after { | |
content: close-quote; | |
} | |
center { | |
display: block; | |
/* special centering to be able to emulate the html4/netscape behaviour */ | |
text-align: -webkit-center; | |
} | |
hr { | |
display: block; | |
-webkit-margin-before: 0.5em; | |
-webkit-margin-after: 0.5em; | |
-webkit-margin-start: auto; | |
-webkit-margin-end: auto; | |
border-style: inset; | |
border-width: 1px; | |
} | |
video { | |
object-fit: contain; | |
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS | |
-webkit-tap-highlight-color: transparent; | |
#endif | |
} | |
/* heading elements */ | |
h1 { | |
display: block; | |
font-size: 2em; | |
-webkit-margin-before: 0.67__qem; | |
-webkit-margin-after: 0.67em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
font-weight: bold; | |
} | |
:matches(article, aside, nav, section) h1 { | |
font-size: 1.5em; | |
-webkit-margin-before: 0.83__qem; | |
-webkit-margin-after: 0.83em; | |
} | |
:matches(article, aside, nav, section) :matches(article, aside, nav, section) h1 { | |
font-size: 1.17em; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1em; | |
} | |
:matches(article, aside, nav, section) :matches(article, aside, nav, section) :matches(article, aside, nav, section) h1 { | |
font-size: 1.00em; | |
-webkit-margin-before: 1.33__qem; | |
-webkit-margin-after: 1.33em; | |
} | |
:matches(article, aside, nav, section) :matches(article, aside, nav, section) :matches(article, aside, nav, section) :matches(article, aside, nav, section) h1 { | |
font-size: .83em; | |
-webkit-margin-before: 1.67__qem; | |
-webkit-margin-after: 1.67em; | |
} | |
:matches(article, aside, nav, section) :matches(article, aside, nav, section) :matches(article, aside, nav, section) :matches(article, aside, nav, section) :matches(article, aside, nav, section) h1 { | |
font-size: .67em; | |
-webkit-margin-before: 2.33__qem; | |
-webkit-margin-after: 2.33em; | |
} | |
h2 { | |
display: block; | |
font-size: 1.5em; | |
-webkit-margin-before: 0.83__qem; | |
-webkit-margin-after: 0.83em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
font-weight: bold; | |
} | |
h3 { | |
display: block; | |
font-size: 1.17em; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
font-weight: bold; | |
} | |
h4 { | |
display: block; | |
-webkit-margin-before: 1.33__qem; | |
-webkit-margin-after: 1.33em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
font-weight: bold; | |
} | |
h5 { | |
display: block; | |
font-size: .83em; | |
-webkit-margin-before: 1.67__qem; | |
-webkit-margin-after: 1.67em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
font-weight: bold; | |
} | |
h6 { | |
display: block; | |
font-size: .67em; | |
-webkit-margin-before: 2.33__qem; | |
-webkit-margin-after: 2.33em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
font-weight: bold; | |
} | |
/* tables */ | |
table { | |
display: table; | |
border-collapse: separate; | |
border-spacing: 2px; | |
border-color: gray; | |
} | |
thead { | |
display: table-header-group; | |
vertical-align: middle; | |
border-color: inherit; | |
} | |
tbody { | |
display: table-row-group; | |
vertical-align: middle; | |
border-color: inherit; | |
} | |
tfoot { | |
display: table-footer-group; | |
vertical-align: middle; | |
border-color: inherit; | |
} | |
/* for tables without table section elements (can happen with XHTML or dynamically created tables) */ | |
table > tr { | |
vertical-align: middle; | |
} | |
col { | |
display: table-column; | |
} | |
colgroup { | |
display: table-column-group; | |
} | |
tr { | |
display: table-row; | |
vertical-align: inherit; | |
border-color: inherit; | |
} | |
td, th { | |
display: table-cell; | |
vertical-align: inherit; | |
} | |
th { | |
font-weight: bold; | |
} | |
caption { | |
display: table-caption; | |
text-align: -webkit-center; | |
} | |
/* lists */ | |
ul, menu, dir { | |
display: block; | |
list-style-type: disc; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
-webkit-padding-start: 40px; | |
} | |
ol { | |
display: block; | |
list-style-type: decimal; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
-webkit-padding-start: 40px; | |
} | |
li { | |
display: list-item; | |
text-align: -webkit-match-parent; | |
} | |
ul ul, ol ul { | |
list-style-type: circle; | |
} | |
ol ol ul, ol ul ul, ul ol ul, ul ul ul { | |
list-style-type: square; | |
} | |
dd { | |
display: block; | |
-webkit-margin-start: 40px; | |
} | |
dl { | |
display: block; | |
-webkit-margin-before: 1__qem; | |
-webkit-margin-after: 1em; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
} | |
dt { | |
display: block; | |
} | |
ol ul, ul ol, ul ul, ol ol { | |
-webkit-margin-before: 0; | |
-webkit-margin-after: 0; | |
} | |
/* form elements */ | |
form { | |
display: block; | |
margin-top: 0__qem; | |
} | |
label { | |
cursor: default; | |
} | |
legend { | |
display: block; | |
-webkit-padding-start: 2px; | |
-webkit-padding-end: 2px; | |
border: none; | |
} | |
fieldset { | |
display: block; | |
-webkit-margin-start: 2px; | |
-webkit-margin-end: 2px; | |
-webkit-padding-before: 0.35em; | |
-webkit-padding-start: 0.75em; | |
-webkit-padding-end: 0.75em; | |
-webkit-padding-after: 0.625em; | |
border: 2px groove ThreeDFace; | |
min-width: min-content; | |
} | |
button { | |
-webkit-appearance: button; | |
} | |
/* Form controls don't go vertical. */ | |
input, textarea, keygen, select, button, meter, progress { | |
-webkit-writing-mode: horizontal-tb !important; | |
} | |
input, textarea, keygen, select, button { | |
margin: 0__qem; | |
#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) | |
font: -webkit-small-control; | |
#endif | |
color: initial; | |
letter-spacing: normal; | |
word-spacing: normal; | |
line-height: normal; | |
text-transform: none; | |
text-indent: 0; | |
text-shadow: none; | |
display: inline-block; | |
text-align: start; | |
} | |
input[type="hidden"] { | |
display: none; | |
} | |
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS | |
textarea, | |
input[type="range"], | |
#endif | |
input, | |
input:matches([type="password"], [type="search"]) { | |
-webkit-appearance: textfield; | |
#if defined(WTF_PLATFORM_MAC) && WTF_PLATFORM_MAC | |
color: text; | |
background-color: -apple-system-control-background; | |
#else | |
background-color: white; | |
#endif | |
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS | |
border-radius: 5px; | |
font: 11px Helvetica, -webkit-pictograph; | |
border: 1px solid #4c4c4c; | |
padding: 0.2em 0.5em 0.3em 0.5em; | |
#else | |
border: 2px inset; | |
padding: 1px; | |
#endif | |
-webkit-rtl-ordering: logical; | |
-webkit-user-select: text; | |
cursor: auto; | |
} | |
#if defined(WTF_PLATFORM_MAC) && WTF_PLATFORM_MAC | |
@media (prefers-dark-interface) { | |
input, | |
input:matches([type="password"], [type="search"]) { | |
background-color: transparent; | |
} | |
} | |
#endif | |
input[type="search"] { | |
-webkit-appearance: searchfield; | |
box-sizing: border-box; | |
} | |
input::-webkit-textfield-decoration-container { | |
display: flex; | |
align-items: center; | |
content: none !important; | |
} | |
input::-webkit-clear-button { | |
-webkit-appearance: searchfield-cancel-button; | |
display: inline-block; | |
flex: none; | |
margin-left: 2px; | |
} | |
input[type="search"]::-webkit-search-cancel-button { | |
-webkit-appearance: searchfield-cancel-button; | |
display: block; | |
flex: none; | |
align-self: flex-start; | |
margin: auto 0; | |
} | |
input[type="search"]::-webkit-search-decoration { | |
-webkit-appearance: searchfield-decoration; | |
display: block; | |
flex: none; | |
align-self: flex-start; | |
margin: auto 0; | |
} | |
input[type="search"]::-webkit-search-results-decoration { | |
-webkit-appearance: searchfield-results-decoration; | |
display: block; | |
flex: none; | |
align-self: flex-start; | |
margin: auto 0; | |
} | |
input[type="search"]::-webkit-search-results-button { | |
-webkit-appearance: searchfield-results-button; | |
display: block; | |
flex: none; | |
} | |
#if defined(ENABLE_DATALIST_ELEMENT) && ENABLE_DATALIST_ELEMENT | |
datalist { | |
display: none; | |
} | |
#endif | |
#if defined(ENABLE_INPUT_TYPE_DATE) && ENABLE_INPUT_TYPE_DATE | |
input[type="date"] { | |
align-items: center; | |
-webkit-appearance: menulist-button; | |
display: -webkit-inline-flex; | |
overflow: hidden; | |
#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) | |
width: 10em; | |
#endif | |
} | |
#endif | |
#if defined(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) && ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE | |
input[type="datetime"] { | |
align-items: center; | |
-webkit-appearance: menulist-button; | |
display: -webkit-inline-flex; | |
overflow: hidden; | |
#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) | |
width: 10em; | |
#endif | |
} | |
#endif | |
#if defined(ENABLE_INPUT_TYPE_DATETIMELOCAL) && ENABLE_INPUT_TYPE_DATETIMELOCAL | |
input[type="datetime-local"] { | |
align-items: center; | |
-webkit-appearance: menulist-button; | |
display: -webkit-inline-flex; | |
overflow: hidden; | |
#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) | |
width: 10em; | |
#endif | |
} | |
#endif | |
#if defined(ENABLE_INPUT_TYPE_MONTH) && ENABLE_INPUT_TYPE_MONTH | |
input[type="month"] { | |
align-items: center; | |
-webkit-appearance: menulist-button; | |
display: -webkit-inline-flex; | |
overflow: hidden; | |
#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) | |
width: 10em; | |
#endif | |
} | |
#endif | |
#if defined(ENABLE_INPUT_TYPE_TIME) && ENABLE_INPUT_TYPE_TIME | |
input[type="time"] { | |
align-items: center; | |
-webkit-appearance: menulist-button; | |
display: -webkit-inline-flex; | |
overflow: hidden; | |
#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) | |
width: 10em; | |
#endif | |
} | |
#endif | |
#if defined(ENABLE_INPUT_TYPE_WEEK) && ENABLE_INPUT_TYPE_WEEK | |
#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) | |
input[type="week"] { | |
align-items: center; | |
-webkit-appearance: menulist-button; | |
display: -webkit-inline-flex; | |
overflow: hidden; | |
width: 10em; | |
} | |
#endif | |
#endif | |
input::-webkit-date-and-time-value { | |
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS | |
margin-right: 18px; | |
#else | |
margin: 1px 24px 1px 4px; | |
white-space: pre; | |
#endif | |
} | |
input::-webkit-inner-spin-button { | |
-webkit-appearance: inner-spin-button; | |
display: block; | |
position: relative; | |
cursor: default; | |
/* This height property is ignored for input type "number" and others which | |
* use RenderTextControlSingleLine as renderer which sets height of spin | |
* button in layout(). */ | |
height: 1.5em; | |
flex: none; | |
-webkit-user-select: none; | |
} | |
input::-webkit-strong-password-auto-fill-button { | |
flex-shrink: 1 !important; | |
font-family: -apple-system !important; | |
-webkit-text-security: none !important; | |
-webkit-user-select: none !important; | |
pointer-events: none !important; | |
text-align: right !important; | |
color: rgba(0, 0, 0, 0.8) !important; | |
padding-left: 6px !important; | |
white-space: nowrap !important; | |
} | |
input::-webkit-credentials-auto-fill-button { | |
-webkit-mask-image: -webkit-image-set(url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAMCAYAAAC9QufkAAAAAXNSR0IB2cksfwAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAAsTAAALEwEAmpwYAAADyWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICA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RWQP1HkkTaRSK98CLioYr5vV4BqigxarlxSbsmu0XzO8qLxRmw/WCiRyLmjYEgTfhEWAPTM88VV4ozDP9HEyyBijHLdKQ4l2AR+YAGBMNhcFJVgETU8+xqIXCVXNtxm9cdJyU58VVhUKe/khwB+55XaeYqDC/zdoUtbzWFDPj7fQCLFjB+Vf4xaA2SvkK65iumLvwJNLkOFL79xJXfQhwlQTjsnu61r+2fEs/b4ZbzrEPMzEAAAAASUVORK5CYII=") 2x); | |
-webkit-mask-size: 15px 12px; | |
width: 15px; | |
height: 12px; | |
margin-left: 3px; | |
margin-right: 2px; | |
background-color: black; | |
flex: none; | |
-webkit-user-select: none; | |
} | |
input::-webkit-credentials-auto-fill-button:hover { | |
background-color: rgb(0, 122, 255); | |
} | |
input::-webkit-credentials-auto-fill-button:active { | |
background-color: rgb(0, 60, 219); | |
} | |
input::-webkit-contacts-auto-fill-button { | |
-webkit-mask-image: -webkit-image-set(url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAMCAYAAABm+U3GAAAAAXNSR0IArs4c6QAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAAsTAAALEwEAmpwYAAADzWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgICAgICAgICB4bWx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
margin-left: 3px; | |
margin-right: 2px; | |
background-color: black; | |
flex: none; | |
-webkit-user-select: none; | |
} | |
input::-webkit-contacts-auto-fill-button:hover { | |
background-color: rgb(0, 122, 255); | |
} | |
input::-webkit-contacts-auto-fill-button:active { | |
background-color: rgb(0, 60, 219); | |
} | |
input::-webkit-caps-lock-indicator { | |
-webkit-appearance: caps-lock-indicator; | |
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17"><path fill="black" fill-opacity="0.4" d="M12.5 0.5A 4 4 0 0 1 16.5 4.5L 16.5 12.5A 4 4 0 0 1 12.5 16.5L 4.5 16.5A 4 4 0 0 1 0.5 12.5L 0.5 4.5A 4 4 0 0 1 4.5 0.5L 12.5 0.5M 8.5 2L 4 7L 6.25 7L 6.25 10.25L 10.75 10.25L 10.75 7L 13 7L 8.5 2M 10.75 12L 6.25 12L 6.25 14.25L 10.75 14.25L 10.75 12"/></svg>'); | |
align-self: stretch; | |
flex: none; | |
-webkit-user-select: none; | |
} | |
keygen, select { | |
border-radius: 5px; | |
} | |
keygen::-webkit-keygen-select { | |
margin: 0px; | |
} | |
textarea { | |
-webkit-appearance: textarea; | |
#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) | |
#if defined(WTF_PLATFORM_MAC) && WTF_PLATFORM_MAC | |
color: text; | |
background-color: -apple-system-control-background; | |
#else | |
background-color: white; | |
#endif | |
border: 1px solid; | |
-webkit-rtl-ordering: logical; | |
-webkit-user-select: text; | |
#else | |
-webkit-nbsp-mode: space; | |
-webkit-line-break: after-white-space; | |
#endif | |
flex-direction: column; | |
resize: auto; | |
cursor: auto; | |
padding: 2px; | |
white-space: pre-wrap; | |
word-wrap: break-word; | |
} | |
::placeholder { | |
-webkit-text-security: none; | |
color: darkGray; | |
pointer-events: none !important; | |
} | |
input::placeholder { | |
white-space: pre; | |
word-wrap: normal; | |
overflow: hidden; | |
} | |
input[type="password"] { | |
-webkit-text-security: disc !important; | |
} | |
input:matches([type="hidden"], [type="image"], [type="file"]) { | |
-webkit-appearance: initial; | |
padding: initial; | |
background-color: initial; | |
border: initial; | |
} | |
input[type="file"] { | |
align-items: baseline; | |
color: inherit; | |
text-align: start !important; | |
} | |
input:-webkit-autofill-strong-password { | |
-webkit-text-security: none !important; | |
-webkit-user-select: none !important; | |
cursor: default !important; | |
font-family: monospace; | |
} | |
input:-webkit-autofill, input:-webkit-autofill-strong-password { | |
background-color: #FAFFBD !important; | |
background-image: none !important; | |
color: #000000 !important; | |
} | |
input:matches([type="radio"], [type="checkbox"]) { | |
margin: 3px 2px; | |
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS | |
border: 1px solid #4c4c4c; | |
box-sizing: border-box; | |
#else | |
padding: initial; | |
background-color: initial; | |
border: initial; | |
#endif | |
} | |
input:matches([type="button"], [type="submit"], [type="reset"]) { | |
-webkit-appearance: push-button; | |
white-space: pre; | |
} | |
input[type="file"]::-webkit-file-upload-button { | |
-webkit-appearance: push-button; | |
white-space: nowrap; | |
margin: 0; | |
font-size: inherit; | |
} | |
input:matches([type="button"], [type="submit"], [type="reset"]), input[type="file"]::-webkit-file-upload-button, button { | |
align-items: flex-start; | |
text-align: center; | |
cursor: default; | |
color: ButtonText; | |
#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) | |
padding: 2px 6px 3px 6px; | |
border: 2px outset ButtonFace; | |
background-color: ButtonFace; | |
#else | |
padding: 0 1.0em; | |
border: 1px solid #4c4c4c; | |
/* We want to be as close to background-color:transparent as possible without actually being transparent. */ | |
background-color: rgba(255, 255, 255, 0.01); | |
font: 11px Helvetica; | |
#endif | |
box-sizing: border-box; | |
} | |
input:matches([type="button"], [type="submit"], [type="reset"]):active, input[type="file"]::-webkit-file-upload-button:active, button:active { | |
color: ActiveButtonText; | |
} | |
input[type="range"] { | |
-webkit-appearance: slider-horizontal; | |
padding: initial; | |
border: initial; | |
margin: 2px; | |
color: #909090; | |
} | |
input[type="range"]::-webkit-slider-container, input[type="range"]::-webkit-media-slider-container { | |
flex: 1; | |
box-sizing: border-box; | |
display: flex; | |
align-contents: center; | |
} | |
input[type="range"]::-webkit-slider-runnable-track { | |
flex: 1; | |
align-self: center; | |
box-sizing: border-box; | |
display: block; | |
} | |
input[type="range"]::-webkit-slider-thumb, input[type="range"]::-webkit-media-slider-thumb { | |
-webkit-appearance: sliderthumb-horizontal; | |
box-sizing: border-box; | |
display: block; | |
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS | |
background-color: white; | |
border: 1px solid rgb(66, 66, 66); | |
padding: 0px; | |
#endif | |
} | |
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS | |
input[type="range"]::-webkit-slider-thumb:active { | |
background-color: black; | |
} | |
input:disabled, textarea:disabled { | |
opacity: 0.4; | |
} | |
input[readonly], textarea[readonly] { | |
border-color: rgb(188, 188, 188); | |
} | |
textarea::placeholder { | |
text-indent: 2px; | |
} | |
#endif | |
input:matches([type="button"], [type="submit"], [type="reset"]):disabled, | |
input[type="file"]:disabled::-webkit-file-upload-button, button:disabled, | |
select:disabled, keygen:disabled, optgroup:disabled, option:disabled, | |
select[disabled]>option { | |
color: GrayText; | |
} | |
#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) | |
input:matches([type="button"], [type="submit"], [type="reset"]):active, input[type="file"]:active::-webkit-file-upload-button, button:active { | |
border-style: inset; | |
} | |
input:matches([type="button"], [type="submit"], [type="reset"]):active:disabled, | |
input[type="file"]:active:disabled::-webkit-file-upload-button, button:active:disabled { | |
border-style: outset; | |
} | |
#endif | |
area, param { | |
display: none; | |
} | |
input[type="checkbox"] { | |
-webkit-appearance: checkbox; | |
#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) | |
box-sizing: border-box; | |
#else | |
border-radius: 5px; | |
width: 16px; | |
height: 16px; | |
padding: 0px; | |
/* We want to be as close to background:transparent as possible without actually being transparent */ | |
background-color: rgba(255, 255, 255, 0.01); | |
#endif | |
} | |
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS | |
input[type="radio"] { | |
-webkit-appearance: radio; | |
border-radius: 50%; | |
width: 16px; | |
height: 16px; | |
padding: 0px; | |
/* We want to be as close to background:transparent as possible without actually being transparent */ | |
background-color: rgba(255, 255, 255, 0.01); | |
} | |
input:matches([type="checkbox"], [type="radio"]):checked { | |
background: rgba(0, 0, 0, 0.8); | |
border-color: rgba(255, 255, 255, 0.0); | |
} | |
input:matches([type="checkbox"], [type="radio"]):checked:disabled { | |
opacity: 0.4; | |
background: rgba(0, 0, 0, 0.8); | |
} | |
#endif | |
#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) | |
input[type="radio"] { | |
-webkit-appearance: radio; | |
box-sizing: border-box; | |
} | |
#endif | |
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS | |
select:focus { | |
border-color: rgb(17, 46, 135); | |
} | |
#endif | |
#if defined(ENABLE_INPUT_TYPE_COLOR) && ENABLE_INPUT_TYPE_COLOR | |
input[type="color"] { | |
-webkit-appearance: square-button; | |
width: 44px; | |
height: 23px; | |
} | |
input[type="color"]::-webkit-color-swatch-wrapper { | |
display: flex; | |
padding: 4px 2px; | |
box-sizing: border-box; | |
width: 100%; | |
height: 100%; | |
} | |
input[type="color"]::-webkit-color-swatch { | |
background-color: #000000; | |
border: 1px solid #777777; | |
flex: 1; | |
} | |
#if defined(ENABLE_DATALIST_ELEMENT) && ENABLE_DATALIST_ELEMENT | |
input[type="color"][list] { | |
-webkit-appearance: menulist; | |
width: 88px; | |
height: 23px; | |
} | |
input[type="color"][list]::-webkit-color-swatch-wrapper { | |
padding-left: 8px; | |
padding-right: 24px; | |
} | |
input[type="color"][list]::-webkit-color-swatch { | |
border-color: #000000; | |
} | |
#endif // defined(ENABLE_DATALIST_ELEMENT) && ENABLE_DATALIST_ELEMENT | |
#endif // defined(ENABLE_INPUT_TYPE_COLOR) && ENABLE_INPUT_TYPE_COLOR | |
select { | |
box-sizing: border-box; | |
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS | |
-webkit-appearance: menulist-button; | |
letter-spacing: normal; | |
word-spacing: normal; | |
line-height: normal; | |
border: 1px solid #4c4c4c; | |
/* We want to be as close to background:transparent as possible without actually being transparent */ | |
background-color: rgba(255, 255, 255, 0.01); | |
font: 11px Helvetica; | |
padding: 0 0.4em 0 0.4em; | |
#else | |
-webkit-appearance: menulist; | |
border: 1px solid; | |
#if defined(WTF_PLATFORM_MAC) && WTF_PLATFORM_MAC | |
color: text; | |
background-color: -apple-system-control-background; | |
#else | |
color: black; | |
background-color: white; | |
#endif | |
#endif | |
align-items: center; | |
white-space: pre; | |
-webkit-rtl-ordering: logical; | |
cursor: default; | |
} | |
#if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) | |
select:matches([size], [multiple], [size][multiple]) { | |
-webkit-appearance: listbox; | |
align-items: flex-start; | |
border: 1px inset gray; | |
border-radius: initial; | |
white-space: initial; | |
} | |
select:matches([size="0"], [size="1"]) { | |
-webkit-appearance: menulist; | |
align-items: center; | |
border: 1px solid; | |
border-radius: 5px; | |
white-space: pre; | |
} | |
#endif | |
optgroup { | |
font-weight: bolder; | |
} | |
option { | |
font-weight: normal; | |
} | |
output { | |
display: inline; | |
} | |
/* form validation message bubble */ | |
::-webkit-validation-bubble { | |
display: inline-block; | |
z-index: 2147483647; | |
position: absolute; | |
opacity: 0.95; | |
line-height: 0; | |
margin: 0; | |
-webkit-text-security: none; | |
transition: opacity 05.5s ease; | |
} | |
::-webkit-validation-bubble-message { | |
display: flex; | |
position: relative; | |
top: -4px; | |
font: message-box; | |
color: black; | |
min-width: 50px; | |
max-width: 200px; | |
border: solid 2px #400; | |
background: -webkit-gradient(linear, left top, left bottom, from(#f8ecec), to(#e8cccc)); | |
padding: 8px; | |
border-radius: 8px; | |
-webkit-box-shadow: 4px 4px 4px rgba(100,100,100,0.6), | |
inset -2px -2px 1px #d0c4c4, | |
inset 2px 2px 1px white; | |
line-height: normal; | |
white-space: normal; | |
z-index: 2147483644; | |
} | |
::-webkit-validation-bubble-text-block { | |
flex: 1; | |
} | |
::-webkit-validation-bubble-heading { | |
font-weight: bold; | |
} | |
::-webkit-validation-bubble-arrow { | |
display: inline-block; | |
position: relative; | |
left: 32px; | |
width: 16px; | |
height: 16px; | |
background-color: #f8ecec; | |
border-width: 2px 0 0 2px; | |
border-style: solid; | |
border-color: #400; | |
box-shadow: inset 2px 2px 1px white; | |
-webkit-transform-origin: 0 0; | |
transform: rotate(45deg); | |
z-index: 2147483645; | |
} | |
::-webkit-validation-bubble-arrow-clipper { | |
display: block; | |
overflow: hidden; | |
height: 16px; | |
} | |
#if defined(ENABLE_METER_ELEMENT) && ENABLE_METER_ELEMENT | |
/* meter */ | |
meter { | |
-webkit-appearance: meter; | |
box-sizing: border-box; | |
display: inline-block; | |
height: 1em; | |
width: 5em; | |
vertical-align: -0.2em; | |
} | |
#endif | |
/* progress */ | |
progress { | |
-webkit-appearance: progress-bar; | |
box-sizing: border-box; | |
display: inline-block; | |
height: 1em; | |
width: 10em; | |
vertical-align: -0.2em; | |
} | |
progress::-webkit-progress-inner-element { | |
-webkit-appearance: inherit; | |
box-sizing: inherit; | |
height: 100%; | |
width: 100%; | |
} | |
progress::-webkit-progress-bar { | |
background-color: gray; | |
height: 100%; | |
width: 100%; | |
box-sizing: border-box; | |
} | |
progress::-webkit-progress-value { | |
background-color: green; | |
height: 100%; | |
width: 50%; /* should be removed later */ | |
box-sizing: border-box; | |
} | |
/* inline elements */ | |
u, ins { | |
text-decoration: underline; | |
} | |
strong, b { | |
font-weight: bold; | |
} | |
i, cite, em, var, address, dfn { | |
font-style: italic; | |
} | |
tt, code, kbd, samp { | |
font-family: monospace; | |
} | |
pre, xmp, plaintext, listing { | |
display: block; | |
font-family: monospace; | |
white-space: pre; | |
margin: 1__qem 0; | |
} | |
mark { | |
background-color: yellow; | |
color: black; | |
} | |
big { | |
font-size: larger; | |
} | |
small { | |
font-size: smaller; | |
} | |
s, strike, del { | |
text-decoration: line-through; | |
} | |
sub { | |
vertical-align: sub; | |
font-size: smaller; | |
} | |
sup { | |
vertical-align: super; | |
font-size: smaller; | |
} | |
nobr { | |
white-space: nowrap; | |
} | |
/* states */ | |
:focus { | |
outline: auto 5px -webkit-focus-ring-color; | |
} | |
/* Read-only text fields do not show a focus ring but do still receive focus */ | |
html:focus, body:focus, input[readonly]:focus, applet:focus, embed:focus, iframe:focus, object:focus { | |
outline: none; | |
} | |
input:focus, textarea:focus, keygen:focus, select:focus { | |
outline-offset: -2px; | |
} | |
input:matches([type="button"], [type="checkbox"], [type="file"], [type="hidden"], [type="image"], [type="radio"], [type="reset"], [type="search"], [type="submit"]):focus, | |
input[type="file"]:focus::-webkit-file-upload-button { | |
outline-offset: 0; | |
} | |
a:any-link { | |
color: -webkit-link; | |
text-decoration: underline; | |
cursor: auto; | |
} | |
a:any-link:active { | |
color: -webkit-activelink; | |
} | |
/* HTML5 ruby elements */ | |
ruby, rt { | |
text-indent: 0; /* blocks used for ruby rendering should not trigger this */ | |
} | |
rt { | |
line-height: normal; | |
-webkit-text-emphasis: none; | |
} | |
ruby > rt { | |
display: block; | |
font-size: -webkit-ruby-text; | |
text-align: start; | |
} | |
ruby > rp { | |
display: none; | |
} | |
/* other elements */ | |
noframes { | |
display: none; | |
} | |
frameset, frame { | |
display: block; | |
} | |
frameset { | |
border-color: inherit; | |
} | |
iframe { | |
border: 2px inset; | |
} | |
details { | |
display: block; | |
} | |
summary { | |
display: block; | |
} | |
summary::-webkit-details-marker { | |
display: inline-block; | |
width: 0.66em; | |
height: 0.66em; | |
margin-right: 0.4em; | |
} | |
template { | |
display: none; | |
} | |
bdi, output { | |
unicode-bidi: isolate; | |
} | |
bdo { | |
unicode-bidi: bidi-override; | |
} | |
slot { | |
display: contents; | |
} | |
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS | |
applet, embed, object, img { | |
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); | |
} | |
:any-link img { | |
-webkit-tap-highlight-color: inherit; | |
} | |
#endif | |
#if defined(ENABLE_ATTACHMENT_ELEMENT) && ENABLE_ATTACHMENT_ELEMENT | |
attachment { | |
-webkit-appearance: attachment; | |
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS | |
color: -apple-system-blue; | |
#endif | |
} | |
#endif | |
/* page */ | |
@page { | |
/* FIXME: Define the right default values for page properties. */ | |
size: auto; | |
margin: auto; | |
padding: 0px; | |
border-width: 0px; | |
} | |
/* noscript is handled internally, as it depends on settings. */ | |
/* Default support for "Smart Invert" where all content color except media is inverted. */ | |
@media (inverted-colors) { | |
img:not(picture>img), picture, video { filter: invert(100%); } /* Images and videos double-inverted. */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment