cssnano
Version:
A modular CSS minifier, built on top of the PostCSS ecosystem.
59 lines (57 loc) • 650 B
JavaScript
/* CSS Values 4 length units. */
const lengthUnits = new Set([
// Absolute lengths
'cm',
'in',
'mm',
'pc',
'pt',
'px',
'q',
// Font-relative lengths
'cap',
'ch',
'em',
'ex',
'ic',
'lh',
'rcap',
'rch',
'rem',
'rex',
'ric',
'rlh',
// Container query lengths
'cqb',
'cqh',
'cqi',
'cqmax',
'cqmin',
'cqw',
// Viewport-percentage lengths
'dvb',
'dvh',
'dvi',
'dvmax',
'dvmin',
'dvw',
'lvb',
'lvh',
'lvi',
'lvmax',
'lvmin',
'lvw',
'svb',
'svh',
'svi',
'svmax',
'svmin',
'svw',
'vb',
'vh',
'vi',
'vmax',
'vmin',
'vw',
]);
export default lengthUnits;