don't inherit font from body

This commit is contained in:
Sindre Sorhus 2014-10-01 17:56:16 +02:00
parent de5f4f635a
commit 86b8356ba6

View File

@ -76,7 +76,7 @@ function cleanupCss(str) {
if (el.selectors.length === 1 && /^(?:html|body)$/.test(el.selectors[0])) {
el.declarations = el.declarations.filter(function (declaration) {
// remove everything from body/html other than these
if (/^font|^(?:line-height|color)$|text-size-adjust$/.test(declaration.property)) {
if (/^(?:line-height|color)$|text-size-adjust$/.test(declaration.property)) {
return true;
}