Skip to content

Commit

Permalink
don't inherit font from body
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 1, 2014
1 parent de5f4f6 commit 86b8356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 86b8356

Please sign in to comment.