postcss-merge-longhand
Version:
Merge longhand properties into shorthand with PostCSS.
27 lines • 930 B
TypeScript
/**
* Check if a declaration sets column properties beyond `column-width` and
* `column-count`. The `columns: <width> / <height>` form sets others (like
* `column-height`), so we detect the slash. Only top-level slashes separate
* components; ones in functions like `calc(100%/3)` do not.
*
* @param {import('postcss').Declaration} declaration
* @return {boolean}
*/
declare function setsOtherColumnProperty(declaration: import('postcss').Declaration): boolean;
/**
* @param {import('postcss').Rule} rule
* @return {void}
*/
declare function explode(rule: import('postcss').Rule): void;
/**
* @param {import('postcss').Rule} rule
* @return {void}
*/
declare function merge(rule: import('postcss').Rule): void;
declare const _default: {
explode: typeof explode;
merge: typeof merge;
setsOtherColumnProperty: typeof setsOtherColumnProperty;
};
export default _default;
//# sourceMappingURL=columns.d.ts.map