@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 { MaxBlockSizeValue } from '../types';
/**
* Parses a CSS max-block-size property value into structured components
* @param value - The CSS max-block-size property string
* @returns Parsed max-block-size object or null if invalid
*/
export declare function parse(value: string): MaxBlockSizeValue | null;
/**
* Converts a parsed max-block-size value back to a CSS string
* @param parsed - The parsed max-block-size object
* @returns CSS value string or null if invalid
*/
export declare function toCSSValue(parsed: MaxBlockSizeValue | null): string | null;
export type { MaxBlockSizeValue } from '../types';