@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) • 587 B
TypeScript
import { type MarginValue } from './shared-margin';
export type MarginBottomValue = MarginValue;
/**
* Parses a CSS margin-bottom property value
* @param value - The CSS margin-bottom property string
* @returns Parsed margin-bottom value or null if invalid
*/
export declare function parse(value: string): MarginBottomValue | null;
/**
* Converts a parsed margin-bottom value back to CSS string
* @param parsed - The parsed margin-bottom value
* @returns CSS value string or null if invalid
*/
export declare function toCSSValue(parsed: MarginBottomValue | null): string | null;