@wix/css-property-parser
Version:
A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance
19 lines (18 loc) • 659 B
TypeScript
import type { MarginInlineEndValue } from '../types';
export type { MarginInlineEndValue };
/**
* Parses CSS margin-inline-end property value
*
* Syntax: <length-percentage> | auto | global-keywords
*
* @param value - The CSS value to parse
* @returns Parsed margin-inline-end value or null if invalid
*/
export declare function parse(value: string): MarginInlineEndValue | null;
/**
* Converts parsed margin-inline-end value back to CSS string
*
* @param parsed - The parsed margin-inline-end value
* @returns CSS string representation or null if invalid
*/
export declare function toCSSValue(parsed: MarginInlineEndValue | null): string | null;