UNPKG

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