Skip to content

Instantly share code, notes, and snippets.

@bathos
Created December 27, 2016 02:19
Show Gist options
  • Save bathos/f8f032489fc13d43213ff8d499800452 to your computer and use it in GitHub Desktop.
Save bathos/f8f032489fc13d43213ff8d499800452 to your computer and use it in GitHub Desktop.
extreme chrome css reset
/* Slash and burn / shock and awe / total war CSS reset for Chrome specifically */
:-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,
:-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,
:-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1,
:-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1,
:-webkit-any(article,aside,nav,section) h1,
::-webkit-input-placeholder,
:focus,
a:-webkit-any-link,
a:-webkit-any-link:active,
address,
area,
article,
aside,
b,
bdi,
bdo,
big,
blockquote,
body,
body:-webkit-full-page-media,
body:focus,
button,
button:active,
button:active:disabled,
button:disabled,
caption,
center,
cite,
code,
col,
colgroup,
datalist,
dd,
del,
details,
dfn,
dialog,
dialog::backdrop,
dialog:not([open]),
dir,
div,
dl,
dt,
em,
embed:focus,
fieldset,
figcaption,
figure,
footer,
form,
frame,
frameset,
h1,
h2,
h3,
h4,
h5,
h6,
head,
header,
hgroup,
hr,
html,
html:focus,
i,
iframe,
iframe:focus,
input,
input:-webkit-autofill,
input::-webkit-calendar-picker-indicator,
input::-webkit-calendar-picker-indicator:focus,
input::-webkit-calendar-picker-indicator:hover,
input::-webkit-clear-button,
input::-webkit-inner-spin-button,
input::-webkit-input-placeholder,
input::-webkit-textfield-decoration-container,
input:disabled,
input:disabled::-webkit-calendar-picker-indicator,
input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-calendar-picker-indicator,
input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-clear-button,
input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-inner-spin-button,
input:focus,
input[readonly]::-webkit-calendar-picker-indicator,
input[readonly]:focus,
input[type="button" i],
input[type="button" i]:active,
input[type="button" i]:active:disabled,
input[type="button" i]:disabled,
input[type="button" i]:focus,
input[type="checkbox" i],
input[type="checkbox" i]:focus,
input[type="color" i],
input[type="color" i]::-webkit-color-swatch,
input[type="color" i]::-webkit-color-swatch-wrapper,
input[type="color" i][list],
input[type="color" i][list]::-webkit-color-swatch,
input[type="color" i][list]::-webkit-color-swatch-wrapper,
input[type="date" i]:disabled::-webkit-clear-button,
input[type="date" i]:disabled::-webkit-inner-spin-button,
input[type="date" i][readonly]::-webkit-clear-button,
input[type="date" i][readonly]::-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="datetime-local" i][readonly]::-webkit-clear-button,
input[type="datetime-local" i][readonly]::-webkit-inner-spin-button,
input[type="file" i],
input[type="file" i]::-webkit-file-upload-button,
input[type="file" i]:active::-webkit-file-upload-button,
input[type="file" i]:active:disabled::-webkit-file-upload-button,
input[type="file" i]:disabled::-webkit-file-upload-button,
input[type="file" i]:focus,
input[type="file" i]:focus::-webkit-file-upload-button,
input[type="hidden" i],
input[type="hidden" i]:focus,
input[type="image" i],
input[type="image" i]:focus,
input[type="month" i]:disabled::-webkit-clear-button,
input[type="month" i]:disabled::-webkit-inner-spin-button,
input[type="month" i][readonly]::-webkit-clear-button,
input[type="month" i][readonly]::-webkit-inner-spin-button,
input[type="password" i],
input[type="radio" i],
input[type="radio" i]:focus,
input[type="range" i],
input[type="range" i]::-webkit-media-slider-container,
input[type="range" i]::-webkit-media-slider-thumb,
input[type="range" i]::-webkit-slider-container,
input[type="range" i]::-webkit-slider-runnable-track,
input[type="range" i]::-webkit-slider-thumb,
input[type="reset" i],
input[type="reset" i]:active,
input[type="reset" i]:active:disabled,
input[type="reset" i]:disabled,
input[type="reset" i]:focus,
input[type="search" i],
input[type="search" i]::-webkit-search-cancel-button,
input[type="search" i]:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-search-cancel-button,
input[type="submit" i],
input[type="submit" i]:active,
input[type="submit" i]:active:disabled,
input[type="submit" i]:disabled,
input[type="submit" i]:focus,
input[type="week" i]:disabled::-webkit-clear-button,
input[type="week" i]:disabled::-webkit-inner-spin-button,
input[type="week" i][readonly]::-webkit-clear-button,
input[type="week" i][readonly]::-webkit-inner-spin-button,
ins,
kbd,
keygen,
keygen::-webkit-keygen-select,
keygen:disabled,
keygen:focus,
label,
layer,
legend,
li,
link,
listing,
main,
map,
mark,
marquee,
menu,
meta,
meter,
meter::-webkit-meter-bar,
meter::-webkit-meter-even-less-good-value,
meter::-webkit-meter-inner-element,
meter::-webkit-meter-optimum-value,
meter::-webkit-meter-suboptimum-value,
nav,
nobr,
noframes,
object:focus,
ol,
ol ol,
ol ol ul,
ol ul,
ol ul ul,
optgroup,
optgroup:disabled,
option,
option:-internal-spatial-navigation-focus,
option:disabled,
output,
p,
param,
plaintext,
pre,
progress,
progress::-webkit-progress-bar,
progress::-webkit-progress-inner-element,
progress::-webkit-progress-value,
q,
q:after,
q:before,
rt,
ruby,
ruby > rp,
ruby > rt,
s,
samp,
script,
section,
select,
select:-internal-list-box,
select:-internal-list-box hr,
select:-internal-list-box optgroup,
select:-internal-list-box optgroup option:before,
select:-internal-list-box option,
select:-internal-list-box option:checked,
select:-internal-list-box option:checked:disabled,
select:-internal-list-box:disabled option:checked,
select:-internal-list-box:focus option:checked,
select:-internal-list-box:focus option:checked:disabled,
select:-webkit-autofill,
select:disabled,
select:focus,
select:not(:-internal-list-box),
select[disabled]>option,
slot,
small,
strike,
strong,
style,
sub,
summary,
summary::-webkit-details-marker,
sup,
table,
table > tr,
tbody,
td,
template,
textarea,
textarea:-webkit-autofill,
textarea:disabled,
textarea:focus,
textarea[dir=auto i],
tfoot,
th,
thead,
title,
tr,
tt,
u,
ul,
ul ol,
ul ol ul,
ul ul,
ul ul ul,
var,
video,
xmp {
all: unset;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment