@wix/css-property-parser
Version:
A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance
15 lines (14 loc) • 628 B
TypeScript
import type { MinBlockSizeValue } from '../types';
/**
* Parses a CSS min-block-size property value into structured components
* @param value - The CSS min-block-size property string
* @returns Parsed min-block-size object or null if invalid
*/
export declare function parse(value: string): MinBlockSizeValue | null;
/**
* Converts a parsed min-block-size value back to a CSS string
* @param parsed - The parsed min-block-size object
* @returns CSS value string or null if invalid
*/
export declare function toCSSValue(parsed: MinBlockSizeValue | null): string | null;
export type { MinBlockSizeValue } from '../types';