UNPKG

@wix/css-property-parser

Version:

A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance

26 lines (25 loc) 958 B
import { type BorderStylePropertyValue } from './shared-border-style'; export type BorderLeftStyleValue = BorderStylePropertyValue; /** * Parse CSS border-left-style property * * @param value - CSS border-left-style property value * @returns Parsed border style value or null if invalid * * @example * parse('ridge') // { type: 'keyword', keyword: 'ridge' } * parse('inset') // { type: 'keyword', keyword: 'inset' } * parse('var(--style)') // null (CSS variables handled at runtime) */ export declare function parse(value: string): BorderLeftStyleValue; /** * Convert parsed border-left-style back to CSS string * * @param parsed - Parsed border style value * @returns CSS string representation or null if invalid * * @example * toCSSValue({ type: 'keyword', keyword: 'ridge' }) // 'ridge' * toCSSValue({ type: 'keyword', keyword: 'revert' }) // 'revert' */ export declare function toCSSValue(parsed: BorderLeftStyleValue): string | null;