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