UNPKG

@sequencemedia/css-purge

Version:

A CSS tool written in Node JS as a command line app or library for the purging, burning, reducing, shortening, compressing, cleaning, trimming and formatting of duplicate, extra, excess or bloated CSS.

20 lines (15 loc) 368 B
import hasPropertyFontSize from './filter-for-font-size.mjs' export default function hasHtmlFontSize (rule) { const { selectors = [] } = rule return selectors.some((selector) => { if (selector.includes('html')) { const { declarations = [] } = rule return declarations.some(hasPropertyFontSize) } return false }) }