PostCSS Overflow Shorthand
html {
overflow: hidden auto;
}
/* becomes */
html {
overflow-x: hidden;
overflow-y: auto;
overflow: hidden auto;
}Usage
npm install postcss-overflow-shorthand --save-devconst postcssOverflowShorthand = require('postcss-overflow-shorthand');
postcssOverflowShorthand.process(YOUR_CSS /*, processOptions, pluginOptions */);Options
preserve
Last updated